FROM : Andy Lee
DATE : Sat Jul 01 14:56:05 2006
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
DATE : Sat Jul 01 14:56:05 2006
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
| Related mails | Author | Date |
|---|---|---|
| Kenny Millar | Jun 30, 13:56 | |
| I. Savant | Jun 30, 15:52 | |
| Kenny Millar | Jun 30, 16:09 | |
| I. Savant | Jun 30, 16:23 | |
| Kenny Millar | Jun 30, 16:36 | |
| I. Savant | Jun 30, 16:45 | |
| George Orthwein | Jun 30, 17:17 | |
| I. Savant | Jun 30, 22:52 | |
| Kenny Millar | Jul 1, 14:37 | |
| Andy Lee | Jul 1, 14:56 | |
| Matt Neuburg | Jul 1, 16:19 |






Cocoa mail archive

