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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to