Comments (7)
if you have enabled setPinchTextScalable(true)
than you can rotate the sticker using pinch i.e rotate using two fingers
from photoeditor.
Sorry, I meant flipping as in mirroring the image would be a good addition.
from photoeditor.
Any general use case for mirroring sticker ?
from photoeditor.
I think it's a pretty common function in sticker editing apps. Right now manually adding a mirrored bitmap works, but won't it be better if the functionality is available from the library itself?
Probably by adding a 'flip' button on the frame (like the old Aviary SDK):
from photoeditor.
As of now their is no scope for this feature in the library.Hence as alternate solution you can mirror the bitmap before adding it to PhotoEditorView
This code will mirror the bitmap
BitmapDrawable flip(BitmapDrawable d)
{
Matrix m = new Matrix();
m.preScale(-1, 1);
Bitmap src = d.getBitmap();
Bitmap dst = Bitmap.createBitmap(src, 0, 0, src.getWidth(), src.getHeight(), m, false);
dst.setDensity(DisplayMetrics.DENSITY_DEFAULT);
return new BitmapDrawable(dst);
}
Ref: https://stackoverflow.com/questions/7925278/drawing-mirrored-bitmaps-in-android
from photoeditor.
Yeah, I suppose we can use that option instead. I'll close this issue.
Thanks for this library!
from photoeditor.
Your welcome :)
from photoeditor.
Related Issues (20)
- How to post images burhanrashid to retrofit? HOT 2
- Able to draw with brush by zooming or pinching for best results HOT 3
- Set shape opacity on shapeBuilder doesn't work HOT 7
- Save Image to Cache. HOT 3
- [Bug] saving an image (even without applying filter or brush or anything) will change image dimensions HOT 3
- Leak Graphics memory when changing filter. HOT 4
- Make ViewState public, and return back the final Bitmap after saveAsFile HOT 9
- How to scale source image to fit the space HOT 5
- After save image, the width and height of new saved image was shrink, not like original image size. HOT 2
- After Applying Filter (save image showing black) HOT 2
- Ability to make collage HOT 3
- When app opens Camera photos it rotates them HOT 4
- Android 10 saveAsFile failed to save File cause by open failed: EACCES (Permission denied) HOT 6
- Trying to draw too large bitmap HOT 2
- mPhotoEditor.addImage(bitmap) is not resovled or found in the latest version HOT 2
- Share to PhotoEditor HOT 2
- Open app on blank slate HOT 2
- Adjustable/customizable filters HOT 2
- Edit and resize shape HOT 2
- Initial set image is appearing smaller than the original size HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from photoeditor.