Page 1 of 1

how to scale an image

PostPosted: Feb 3, 2009 @ 7:35am
by akabeer1983
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.

PostPosted: Feb 3, 2009 @ 8:43am
by edge

PostPosted: Feb 3, 2009 @ 8:43am
by akabeer1983

PostPosted: Feb 3, 2009 @ 8:46am
by akabeer1983