Re: how to retrive a part of image from a png/bitmap
Re: how to retrive a part of image from a png/bitmap
- Subject: Re: how to retrive a part of image from a png/bitmap
- From: Quincey Morris <email@hidden>
- Date: Mon, 24 Jan 2011 11:38:59 -0800
On Jan 24, 2011, at 09:46, Rajendran P wrote:
> i have a single bitmap/jpeg (no restriction on image type) of size 360*30
> consisting of 12 pictures each of size 30*30 , i need to programatically
> retrieve each of these images and display them in ui . any suggestion on how to
> approach this would be of great help
There's an API for that.
You don't say whether you're asking about Mac OS X or iOS, but you can start by looking at the documentation for -[NSImage drawInRect:fromRect:operation:fraction:]:
http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Classes/NSImage_Class/Reference/Reference.html
noting the 'fromRect:' parameter.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden