• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: how to retrive a part of image from a png/bitmap
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >how to retrive a part of image from a png/bitmap (From: Rajendran P <email@hidden>)

  • Prev by Date: Re: starting with Cocoa!
  • Next by Date: Re: NSString localizedStringWithFormat: and thousand separators
  • Previous by thread: how to retrive a part of image from a png/bitmap
  • Next by thread: [iPhone] can't get views not to slide off by the height of the status bar
  • Index(es):
    • Date
    • Thread