• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Cropping
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Cropping
      • From: Robert Walker <email@hidden>
  • Prev by Date: Re: NSMatrix with NSTextFieldCells
  • Next by Date: Re: Cropping
  • Previous by thread: Re: Disable "Show Fonts..." menu item?
  • Next by thread: Re: Cropping
  • Index(es):
    • Date
    • Thread