Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rendering HTML into CGBitmapContextRef



Hmm... yet another goodie to compel me shell out for Tiger ;) I so need to get it. Yes. I hang my head in shame for not already having it.

Okay. I'm not going to use the old stuff, but going with WebView, keeping an eye on the Tiger.

Thanks all :)

Mark



On 20-May-05, at 14:58, Derek Clegg wrote:

In Tiger, you can use the poorly named method

+ (NSGraphicsContext *)graphicsContextWithGraphicsPort:(void *)graphicsPort flipped:(BOOL)initialFlippedState;

followed by

  + (void)setCurrentContext:(NSGraphicsContext *)context;

to create and draw into an NSGraphicsContext backed by an arbitrary CGContextRef. This avoids the step of creating PDF just to re-render to your bitmap context. See NSGraphicsContext.h for more details.

Derek

_______________________________________________ Do not post admin requests to the list. They will be ignored. Quartz-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quartz-dev/email@hidden

This email sent to email@hidden
References: 
 >Rendering HTML into CGBitmapContextRef (From: Mark Morrill <email@hidden>)
 >Re: Rendering HTML into CGBitmapContextRef (From: Scott Thompson <email@hidden>)
 >Re: Rendering HTML into CGBitmapContextRef (From: Derek Clegg <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.