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

how to scale an image


how to scale an image

Postby akabeer1983 » Feb 3, 2009 @ 7:35am

Hi,
i am programming for iPhone, i want to scale an image, based on user's touch (touch one corner of image and drag it).
how can i scale the image.
i tried the following, but it displays nothing:

//member variables declaration part
E2DBLTFX bltfx;

//constructor
bltfx.xscale = 3;
bltfx.yscale = 3;

//OnNextFrame function
display -> BltFx(10, 10, image, &rect, &bltfx);


But there wsa no problem with rendering the image normally:
display -> BltFast(100, 100, image, &rect)
the above statement displays the image properly.
akabeer1983
pm Member
 
Posts: 11
Joined: Jan 27, 2009 @ 8:24am


Postby edge » Feb 3, 2009 @ 8:43am

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 akabeer1983 » Feb 3, 2009 @ 8:43am

akabeer1983
pm Member
 
Posts: 11
Joined: Jan 27, 2009 @ 8:24am


Postby akabeer1983 » Feb 3, 2009 @ 8:46am

akabeer1983
pm Member
 
Posts: 11
Joined: Jan 27, 2009 @ 8:24am


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