Re: Converting NSImage to CGImage
Re: Converting NSImage to CGImage
- Subject: Re: Converting NSImage to CGImage
- From: Antonio Nunes <email@hidden>
- Date: Mon, 13 Nov 2006 06:51:27 +0000
Thanks Julien,
That'll get me going.
António
On 12 Nov 2006, at 20:04, Julien Jalon wrote:
If you want to draw something AppKit base in a CGContextRef, you
need to:
1) create a NSGraphicsContext from CGContext using
graphicsContextWithGraphicsPort:flipped:
2) Then:
[NSGraphicsContext saveGraphicsState];
[NSGraphicsContext setCurrentContext:myNSContext];
3) do your drawing
4) Then:
[NSGraphicsContext restoreGraphicsState];
-----------------------------------------
Forgiveness is not an occasional act;
it is a permanent attitude.
--Martin Luther King, Jr
-----------------------------------------
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden