Cropping
Cropping
- Subject: Cropping
- From: Terry Heaford <email@hidden>
- Date: Wed, 24 May 2006 20:13:05 +0100
I have been trying to implement a cropping routine for an image.
I have got this far, it seems to work but I am unsure if the first
two lines are suitable for getting the cropped part of the image. Can
someone please confirm or point me in the right direction.
NSBitmapImageRep *myImageRep = [self
bitmapImageRepForCachingDisplayInRect:selectedRect];
[self cacheDisplayInRect:selectedRect toBitmapImageRep:myImageRep];
[image release];
image = [[CIImage alloc]initWithBitmapImageRep:myImageRep];
[image retain];
[self adjustFrame];
selectedRect = NSZeroRect;
Thanks
--Terry
_______________________________________________
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