• 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
ImageKit programming guide crop tool problem.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ImageKit programming guide crop tool problem.


  • Subject: ImageKit programming guide crop tool problem.
  • From: John Cebasek <email@hidden>
  • Date: Sat, 13 Jun 2009 20:15:46 -0400

Hi All:

I've got to do some 'image processing' in my application and have started with the ImageKit Programming Guide. Everything works except cropping (which is the feature I need). Also, the image I have is a jpeg, if that makes any difference.

As per the guide, here's the code:

-(IBAction)switchToolMode:(id)sender
{
	NSInteger	newTool;

	if ([sender isKindOfClass:[NSSegmentedControl class]])
	{
		newTool = [sender selectedSegment];
	}
	else
	{
		newTool = [sender tag];
	}

	switch (newTool)
	{
		case 0:
			[mImageView setCurrentToolMode:IKToolModeMove];
			break;

		case 1:
			[mImageView setCurrentToolMode:IKToolModeSelect];
			break;

		case 2:
			[mImageView setCurrentToolMode:IKToolModeCrop];
			break;

		case 3:
			[mImageView setCurrentToolMode:IKToolModeRotate];
			break;

		case 4:
			[mImageView setCurrentToolMode:IKToolModeAnnotate];
			break;
	}
}

And as I've stated previously, except for crop, they all work.

Can some one point me to a URL or provide a hint as what has to be done to make the crop tool work?

Thanks in advance for your time.

Best Regards


John

_______________________________________________

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


  • Prev by Date: Re: NSView directly drawn on screen?
  • Next by Date: Re: Coming up with ideas
  • Previous by thread: Re: Putting files in an flat-file executable
  • Next by thread: Blur NSImage
  • Index(es):
    • Date
    • Thread