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.
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)?
Powerful and affordable C++ middleware solution covering true multi-platform 2D, 3D and network features for Apple iPhone, Windows Mobile, Symbian S60, UIQ, Linux and Windows desktop.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum