Re: Compositing to custom view in Cocoa
Re: Compositing to custom view in Cocoa
- Subject: Re: Compositing to custom view in Cocoa
- From: Andy Lee <email@hidden>
- Date: Sat, 1 Jul 2006 08:56:05 -0400
On Jul 1, 2006, at 8:37 AM, Kenny Millar wrote:
I've been all through the docs and can't figure out how to pull a
sepcific rectangle from an image, and store it in an NSImage or
NSBitmapRepresentation.
I haven't done this myself, but looking at the methods for NSImage I
would guess you create a new NSImage, send it -setSize: and -
lockFocus, then tell the first image to -
drawAtPoint:fromRect:operation:fraction:.
--Andy
_______________________________________________
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