Re: Create a nsimage from the nsbitmapimagerep
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