ImageKit programming guide crop tool problem.
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