Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Photo Editor SDK contains a lot of features like edit, scale, rotate and draw on images like Instagram stories.

License

NotificationsYou must be signed in to change notification settings

prscX/photo-editor-android

 
 

Repository files navigation

alt tag

It is an android image editing SDK with simple, easy support for image manipulation.


Features

  • 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

Benefits

  • Hassle free coding
  • Increase efficiency
  • Easy image editing

Installation

For Gradle :

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' }

For Maven :

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>

User Documentation :

  1. 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
  1. To addText on the image:
photoEditorSDK.addText(text,colorCodeTextView);
  1. To addImage orStickers:
photoEditorSDK.addImage(image);
  1. To addEmoji:
photoEditorSDK.addEmoji(emojiName,emojiFont);
  1. ToDraw on the image:
photoEditorSDK.setBrushDrawingMode(brushDrawingMode);// brushDrawingMode is false by default, true if you want to draw on the image view
  1. 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);
  1. ToSave the image after editing:
photoEditorSDK.saveImage(folderName,imageName);
  1. ToUndo the addedViews (Image or Text):
photoEditorSDK.viewUndo();
  1. ToClear All the addedViews (Image or Text):
photoEditorSDK.clearAllViews();
  1. ToClear All the addedDrawing Views:
photoEditorSDK.clearBrushAllViews();
  1. 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) {    }});

Contributing

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.

Credits

PhotoEditorSDK was originally written byAhmed Adel.Project is maintained and funded by

Eventtus

License

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

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java100.0%

[8]ページ先頭

©2009-2025 Movatter.jp