Re: get subimage from an NSImage
Re: get subimage from an NSImage
- Subject: Re: get subimage from an NSImage
- From: "Louis C. Sacha" <email@hidden>
- Date: Wed, 10 Nov 2004 04:36:02 -0800
Hello...
Well, if what you are really after is just an NSBitmapImageRep, perhaps
* Lock focus on the original large NSImage
*create an NSBitmapImageRep and use the "initWithFocusedViewRect:" initializer
*unlock focus from the original image.
You can add the bitmap image rep to an new
NSImage if you want to use that way, or just save
it using the NSBitmapImageRep methods...
Hope that helps,
Louis
At 14:50 +0100 2004-11-08, Sebestyén Gábor wrote:
On 2004. Nov 8, , at 1:27 du, j o a r wrote:
* Unlock focus on the new image
Everything is fine until I want to use its image
rep which is actually a cached one. I want to
save this piece as a jpeg file but cached image
rep doesn't support such a feature.
How can I convert cached image rep to a bitmap image rep?
Gábor
_______________________________________________
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