• 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: Create a nsimage from the nsbitmapimagerep
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Create a nsimage from the nsbitmapimagerep


  • Subject: Re: Create a nsimage from the nsbitmapimagerep
  • From: Gregory Weston <email@hidden>
  • Date: Tue, 27 Feb 2007 06:23:30 -0500

Red XIII wrote:

Hi all
As we know , it is just a piece of cake to create a nsbitmapimagerep
object from a nsimage object.
But if we are going to create a nsimage from nsbitmapimagerep , what
should we do?
Thanks for any help.

How about:

NSImage* i = [[NSImage alloc] initWithSize:[theRep size]];
[i addRepresentation:theRep];
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


  • Prev by Date: Re: EXC-BAD-ACCESS bug
  • Next by Date: postscript files printing with cocoa
  • Previous by thread: Re: Create a nsimage from the nsbitmapimagerep
  • Next by thread: special NSView inheritance correspond to the bitmapImageRepForCachingDisplayInRect?
  • Index(es):
    • Date
    • Thread