I have to perform some image editing operation like cropping, gray scale, rotating image, Polaroid-effects etc.
From these I found some of functionality like cropping, gray scale. But from this we have to manage separate functions iN there. Is there any valid API or Library available for iPhone to perform image processing?
I use the following function for cropping:
-(UIImage *)imageByCropping:(UIImage *)imageToCrop toRect:(CGRect)rect
{
CGImageRef imageRef = CGImageCreateWithImageInRect([imageToCrop CGImage], rect);
UIImage *cropped = [UIImage imageWithCGImage:imageRef];
CGImageRelease(imageRef);
return cropped;
}
for this I have not idea, how to set cropping rectangle on my actual image...and how to re-size that rectangle.
Is there any method in iPhone like Android we direct crop image after capture image... by setting it`s some property we can achieve this in iPhone.
for gray scale I found something here, but for this if we perform Polaroid effect we have to manage separate enums...,
I found one Image Magik API for this but many people said apple reject app due to private API.and also not get how to use it.
If for this or any-other API available than tell me about it and its tutorial.