Re: get subimage from an NSImage
Re: get subimage from an NSImage
- Subject: Re: get subimage from an NSImage
- From: j o a r <email@hidden>
- Date: Mon, 8 Nov 2004 13:27:52 +0100
On 2004-11-08, at 13.10, Sebestyén Gábor wrote:
Is there a Cocoa-way to get subimage from an NSImage ( ie. subImage =
[anImage subImageWithRect: aRect ] )? I need to clip an image apart to
smaller pieces but don't find a way to do it simply.
To summarize the steps in English rather than code:
* Create a new image the size of your subimage
* Lock focus on the new image
* Use "compositeToPoint:fromRect:operation:" on the source image to
copy over the image data
* Unlock focus on the new image
j o a r
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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