- Notifications
You must be signed in to change notification settings - Fork20
Photo Editor SDK contains a lot of features like edit, scale, rotate and draw on images like Instagram stories.
License
prscX/photo-editor-android
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
It is an android image editing SDK with simple, easy support for image manipulation.
- Adding Images.
- Adding Stickers.
- Adding Text with option to change its Color.
- Drawing on image with option to change its Color, its Size and Erasing.
- Scaling and Rotating views.
- Deleting views.
- Saving photo after editing.
- Undo after adding views.
- Transforms
- Flip
- Rotate
- Resize
- Hassle free coding
- Increase efficiency
- Easy image editing
Step 1 : Add it in your root build.gradle at the end of repositories
allprojects {repositories { ...maven {url'https://jitpack.io' } }}
Step 2 : Add the dependency
dependencies {compile'com.github.eventtus:photo-editor-android:v1.0' }
Step 1 : Add it in your root build.gradle at the end of repositories
<repositories> <repository> <id>jitpack.io</id> <url>https://jitpack.io</url> </repository></repositories>
Step 2 : Add the dependency
<dependency> <groupId>com.github.eventtus</groupId> <artifactId>photo-editor-android</artifactId> <version>v1.0</version></dependency>
- First of all you have to get instance of PhotoEditorSDK to initialize it and start calling the desired functions.
photoEditorSDK =newPhotoEditorSDK.PhotoEditorSDKBuilder(PhotoEditorActivity.this).parentView(parentImageRelativeLayout)//add parent image view.childView(photoEditImageView)//add the desired image view.deleteView(deleteRelativeLayout)//add the deleted view that will appear during the movement of the views.brushDrawingView(brushDrawingView)// add the brush drawing view that is responsible for drawing on the image view.buildPhotoEditorSDK();// build photo editor sdk
- To addText on the image:
photoEditorSDK.addText(text,colorCodeTextView);
- To addImage orStickers:
photoEditorSDK.addImage(image);
- To addEmoji:
photoEditorSDK.addEmoji(emojiName,emojiFont);
- ToDraw on the image:
photoEditorSDK.setBrushDrawingMode(brushDrawingMode);// brushDrawingMode is false by default, true if you want to draw on the image view
- To change theColor andSize of the drawing view and theSize and theColor of theEraser view:
photoEditorSDK.setBrushSize(size);photoEditorSDK.setBrushColor(colorCode);photoEditorSDK.brushEraser();photoEditorSDK.setBrushEraserSize(brushEraserSize);photoEditorSDK.setBrushEraserColor(color);
- ToSave the image after editing:
photoEditorSDK.saveImage(folderName,imageName);
- ToUndo the addedViews (Image or Text):
photoEditorSDK.viewUndo();
- ToClear All the addedViews (Image or Text):
photoEditorSDK.clearAllViews();
- ToClear All the addedDrawing Views:
photoEditorSDK.clearBrushAllViews();
- To listen onAdded Views,Edit the added Text Views,Added and Removed Views andStart and Stop Moving Views. You can implement:
photoEditorSDK.setOnPhotoEditorSDKListener(newOnPhotoEditorSDKListener() {@OverridepublicvoidonEditTextChangeListener(Stringtext,intcolorCode) { }@OverridepublicvoidonAddViewListener(ViewTypeviewType,intnumberOfAddedViews) { }@OverridepublicvoidonRemoveViewListener(intnumberOfAddedViews) { }@OverridepublicvoidonStartViewChangeListener(ViewTypeviewType) { }@OverridepublicvoidonStopViewChangeListener(ViewTypeviewType) { }});
We welcome contributions from other developers to help us make the SDK even better.Before you contribute there are a number of things that you should know please seeCONTRIBUTING.md for details.
PhotoEditorSDK was originally written byAhmed Adel.Project is maintained and funded by
Copyright (c) 2017 Eventtus, PhotoEditorSDK is released under the MIT license.
About
Photo Editor SDK contains a lot of features like edit, scale, rotate and draw on images like Instagram stories.
Resources
License
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Languages
- Java100.0%

