hello ,

I am trying to do cropping of image which is dynamically assigned to a vbox component
and i have used following Code:

var bd : BitmapData = new BitmapData(h,w);
var m1 : Matrix = new Matrix();
bd.draw (target, m1);
var puzzlePieceBmp:BitmapData = new BitmapData(target.width,target.height);
puzzlePieceBmp.copyPixels(bd, new Rectangle(x1,y1,h,w), new Point(0, 0));
imageid.source = puzzlePieceBmp;


this is not working properly, The cropped portion is not of desired height and width, Can any body suggest me how the Rectangle parameter works for copypixesl method.
Its been more than 2 days i am working on this part and i tired searching all forum ..reading live docs about copypixels but no gain
please guide me in this. Or any one can point me to some URL where the cropping in flex is demonstrated.
I would be very grateful
Regards
PS
__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to