Page 1 of 1

Scroll window pixels

Posted: Wed Oct 15, 2014 3:39 pm
by seppe
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 ... s.85).aspx
Below is the description of a similar function from apple's quickdraw:
example from apple's quickdraw
Scrollbits.jpg (101.62 KiB)
example from apple's quickdraw Viewed 14954 times