Re: Can't cache image
Re: Can't cache image
- Subject: Re: Can't cache image
- From: Brock Brandenberg <email@hidden>
- Date: Fri, 21 Mar 2003 11:54:06 -0600
>
But, you can see that it exists if you create an NSPDFImageRep, add it to a
>
new NSImage, make sure that the NSImage is set to NSImageCacheDefault, then
>
draw the NSImage to the screen at a frame-to-bounds ratio that causes it to
>
scale. It will be pixelated, illustrating that the PDF was rendered once to
>
the cache, and then pulled from the cache to draw to the screen context.
I inadvertently put it too late in the paragraph, but the new NSImage also
needs setDataRetained: to be set YES before drawing to see the drawing come
from the off-screen cache without the presence of an NSCachedImageRep.
Brock Brandenberg
----- industrial design @ www.bergdesign.com ------
_______________________________________________
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.