Re: Need to draw a NSImage into a graf port
Re: Need to draw a NSImage into a graf port
- Subject: Re: Need to draw a NSImage into a graf port
- From: Troy Dawson <email@hidden>
- Date: Sun, 23 Nov 2003 00:10:50 -0800
On Nov 22, 2003, at 6:32 PM, Scott Chandler wrote:
>
Any suggestions on how best to do this? Specifically we are trying to
>
draw a EPS image into a CGrafPort. We don't care how we get it in
>
there, but ultimately it must end up in a CGrafPort.
mebbe CoreGraphics is your best bet to image the EPS image, if you can
get it into PDF, CG can render it into a qdport.
SetPortWindowPort( window );
QDBeginCGContext( GetWindowPort( window ), &context );
...
CGContextFlush(context);
QDEndCGContext( GetWindowPort( window ), &context );
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.