> Or drop down just a step to just use NSBitmapImageRep instead of
> NSImage which avoids all the caching issues (since you never make an
> NSImage).  It is very well suited for "pixel level work that is saved
> in a file" (since you'll need it to do NSBitmapImageRep's
> representationUsingType: properties: to get the data for a JPG or PNG
> file anyway).

I am not using NSImage - except to draw an existing file into my premade
NSBitmapImageRep. Is there a way to draw a jpg into this NSBitmapRep without
loading the jpg into an NSImage?

> The only slightly tricky part is that if you want to draw in it (using
> the standard drawing routines, as opposed to custom pixel access
> stuff), you'll need to make a context using NSGraphicContext's
> graphicsContextWithBitmapImageRep and then set that as the current
> context.

Yep - doing that.

Trygve


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to