Re: affine transformation of bitmap images
Re: affine transformation of bitmap images
- Subject: Re: affine transformation of bitmap images
- From: Robert Clair <email@hidden>
- Date: Fri, 25 Feb 2005 14:27:42 -0500
Did you draw the image on the screen at some point ? This, at least in
my experience, is what makes it cache. The ways of NSImage are
mysterious. Try adding
[newImg setDataRetained: YES];
before you draw. If that doesn't do it, then
[newImg lockFocus];
NSBitmapImageRep* newBitmapRep =
[[NSBitmapImageRep alloc] initWithFocusedViewRect:
NSMakeRect( 0.0,0.0, [newImg size].width,
[newImg size].height)];
[newImg unlockFocus];
will give you a bitmapRep with the pixels.
Bob Clair
_______________________________________________
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