I need a function (a syscall) to efficiently scroll window pixels.
Parameters: rect, dh, dv
rect is the rectangle specified in window coordinates.
dh,dv are the horizontal and vertical number of pixels to move the pixels.
positive values move pixels to the right and down.
negative values move pixels to the left and up.
Pixels moved out of the window rectangle are lost.
Pixels moved in from outside the window rectangle remain unaffected.
I am a user-land programmer, and I prefer not to get involved in kernel programming.I would appreciate it very much if a skillful kernel programmer would take care of this.
Note: useful options would be:
- put a specified color in pixels moved in from outside the window.
- an additional clipregion (or rectangle list)
- an update region on output
Here you can find the description of a similar function from microsoft's win32: http://msdn.microsoft.com/en-us/library/windows/desktop/bb787589(v=vs.85).aspx
Below is the description of a similar function from apple's quickdraw:
Комментарий к файлу: example from apple's quickdraw
Scrollbits.jpg [ 101.62 КБ | 6441 просмотр ]