Re: Cropping an NSBitmapImageRep to a given NSRect?
Re: Cropping an NSBitmapImageRep to a given NSRect?
- Subject: Re: Cropping an NSBitmapImageRep to a given NSRect?
- From: Daniel Thorpe <email@hidden>
- Date: Mon, 21 Apr 2008 13:23:49 +0100
Thanks Graham, I've just tried NSCompositeCopy, still doesn't work, no
change...
One thing that I've noticed though, is that the source is a grayscale
image, but the image that I'm creating is RGB. Should I perhaps be
creating a new bitmap image rep in the target (of the same colorSpace)
before calling the compositeToPoint method?
Cheers
Dan
On 21 Apr 2008, at 12:57, Graham Cox wrote:
Oops, I meant NSCompositeCopy
g.
On 21 Apr 2008, at 9:55 pm, Graham Cox wrote:
On 21 Apr 2008, at 9:43 pm, Daniel Thorpe wrote:
[source compositeToPoint:NSZeroPoint fromRect:extent
operation:NSCompositeSourceIn fraction:1.0];
Try using NSCompositeSourceCopy here instead.
G.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden