This site is no longer active and is available for archival purposes only. Registration and login is disabled.

scaling


scaling

Postby jrhee » Nov 5, 2008 @ 4:48pm

jrhee
pm Member
 
Posts: 26
Joined: Apr 7, 2008 @ 4:28pm


Postby edge » Nov 6, 2008 @ 10:18am

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.
EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Postby jrhee » Nov 7, 2008 @ 5:32pm

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)?
jrhee
pm Member
 
Posts: 26
Joined: Apr 7, 2008 @ 4:28pm


Postby jrhee » Nov 7, 2008 @ 11:30pm

Hi, figured it out after rereading through old posts. Thanks!
jrhee
pm Member
 
Posts: 26
Joined: Apr 7, 2008 @ 4:28pm


Return to EDGELIB


Sort


Forum Description

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.

Moderator:

edge

Forum permissions

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

cron