A standalone image editing component for iOS that can be incorporated into your own app or expanded upon. Includes drawing, camera function, image filters and effects.
This is a standalone Image Editor app that can be incorporated into your own app or expanded upon.
Nice source code – Best support, Quick reply and the most important thing: You know your products very well and know how to solve the problems. Very highly recommended!J Joseph
The project that exists can be built as a standalone app. In order to integrate this in your own app you will need to do the following:
Step 1: Import all files in the "ImageEditor" folder into your own project. These files should be:
Step 2: In your AppDelegate.h file of your project add the variables:
NSInteger selectedFilter; NSInteger selectedColor; float red; float green; float blue;
and their @properties:
@property (nonatomic) NSInteger selectedFilter; @property (nonatomic) NSInteger selectedColor; @property (nonatomic) float red; @property (nonatomic) float green; @property (nonatomic) float blue;
Refer to the existing AppDelegate.h in this project for reference.
Step 3: In AppDelegate.m add:
@synthesize navController, selectedFilter, red, green, blue, selectedColor;
and in the method "didFinishLaunchingWithOptions" initialise the values with
red=0; green=0; blue=0; selectedFilter = 0; selectedColor = 1;
Refer to the existing AppDelegate.m in this project for reference.
Now from wherever you want to use the Image Editor simply import "DoodlerView.h" and push the initialized object onto your navigationControllers Stack
DoodlerView *imageEditor = [[DoodlerView alloc]init]; [self.navigationController pushViewController:imageEditor animated:YES]; [imageEditor release];
The classes DoodlerView, FilterSelect and ColorSelector (both .h and .m files) have pointers to AppDelegate.h in order to access variables that can be used across all 3 classes. If your AppDelegate filename is different, remember to update the pointers in these files.