A Photo Editor library with simple, easy support for image editing using paints,text,filters,emoji and Sticker like stories.
Full Changelog: https://github.com/burhanrashid52/PhotoEditor/compare/v.3.0.1...v.3.0.2
New : Arrow shape Change : (Breaking Change) minSdkVersion changed to 21 Change : (Breaking Change) Shape names are no longer UPPERCASE New : Suspending functions for saving images: saveAsFile(String[, SaveSettings]) and saveAsBitmap([SaveSettings])
// Please note that if you call this from a fragment, you should call
// 'viewLifecycleOwner.lifecycleScope.launch' instead.
lifecycleScope.launch {
val result = photoEditor.saveAsFile(filePath)
if (result is SaveFileResult.Success) {
showSnackbar("Image saved!")
} else {
showSnackbar("Couldn't save image")
}
}
Fixed : #374 IndexOutOfBoundsException when saving bitmap
photoEditor.setClipSourceImage(true)
onTouchSourceImage(MotionEvent event);
setBrushSize()
, setOpacity()
and setBrushColor
. Use ShapeBuilder
ShapeBuilder
. Support Line, Brush, Oval and Rectangle out of the box.DeprecatedTextStyleBuilder.withTextShadow()
PhotoEditor.getEmoji()
is no longer part of the library and it's now moved to the sample app.Replace deprecated getDrawingCache
with capturing method. - getDrawingCache is deprecated.
PhotoEditor
to extend with a protected constructor.