Rotation and translation of an image

2009-08-12 Thread Agha Khan
HI: Can someone point me the sample code for image transformation? You help will be very much appreciated. Best regards Agha Khan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: Rotation and translation of an image

2009-08-12 Thread Kiel Gillard
Hi Agha, An appropriate answer depends entirely on what you want to do with the image. Do you want to draw the image into a view? Do you want to save the image to the hard disk? You'll have to give us more information to help you out. Kiel On 13/08/2009, at 11:22 AM, Agha Khan wrote: HI

Re: Rotation and translation of an image

2009-08-12 Thread Kiel Gillard
Hi Agha, I'm not too sure what's wrong with the picture so I'm not sure how much I can help you. But to rotate your image by the centre, first translate your image or context so the centre of the image/context is located at the origin: 1 Translate by negative half width, negative half heig

Re: Rotation and translation of an image

2009-08-12 Thread Mohsan Khan
Google is your best friend, atleast mine. Your already said it "image transformation", search for "Cocoa image transformation". I find all the informtation I need to get started by searching "Cocoa ...". /Mohsan Khan On 2009-08-13, at 03:22, Agha Khan wrote: HI: Can someone point me