Page 1 of 1

scaling

PostPosted: Nov 5, 2008 @ 4:48pm
by jrhee

PostPosted: Nov 6, 2008 @ 10:18am
by edge
Hi,

The best alternative for get/put pixel is to lock the surface to receive its memory buffer. You can fetch one row of pixel data by changing your code. In the SetRect call, use y + 1 as the fifth parameter instead of y.

PostPosted: Nov 7, 2008 @ 5:32pm
by jrhee
Thanks for the quick reply. I'm trying to look at some of the Lock() examples on the forum, but I'm not clear as to how to define the E2DSURFACEINFO parameter. What exactly do the pitch (xpitch, ypitch, realpitch) values refer to? Also, where can I find the bufferoffset value? Last, could you please clarify the difference between regular and real variables (such as width vs. realwidth)?

PostPosted: Nov 7, 2008 @ 11:30pm
by jrhee
Hi, figured it out after rereading through old posts. Thanks!