• 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: Converting NSImage to CGImage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Converting NSImage to CGImage (From: Antonio Nunes <email@hidden>)
 >Re: Converting NSImage to CGImage (From: "Julien Jalon" <email@hidden>)

  • Prev by Date: Re: Newbie Setting Web Service namespace
  • Next by Date: Re: IB question
  • Previous by thread: Re: Converting NSImage to CGImage
  • Next by thread: How to launch an IBAction
  • Index(es):
    • Date
    • Thread