Skip navigation.
 
mlRe: Compositing to custom view in Cocoa
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

Related mailsAuthorDate
mlCompositing to custom view in Cocoa Kenny Millar Jun 30, 13:56
mlRe: Compositing to custom view in Cocoa I. Savant Jun 30, 15:52
mlRE: Compositing to custom view in Cocoa Kenny Millar Jun 30, 16:09
mlRe: Compositing to custom view in Cocoa I. Savant Jun 30, 16:23
mlRE: Compositing to custom view in Cocoa Kenny Millar Jun 30, 16:36
mlRe: Compositing to custom view in Cocoa I. Savant Jun 30, 16:45
mlRe: Compositing to custom view in Cocoa George Orthwein Jun 30, 17:17
mlRe: Compositing to custom view in Cocoa I. Savant Jun 30, 22:52
mlRe: Compositing to custom view in Cocoa Kenny Millar Jul 1, 14:37
mlRe: Compositing to custom view in Cocoa Andy Lee Jul 1, 14:56
mlRe: Compositing to custom view in Cocoa Matt Neuburg Jul 1, 16:19