Re-size and Compress Image in Android Studio
Published August 19, 2020In this post, we will learn how to resize and compress an image in Android. Resize image will give usefull in some time.
|
With the above coe we can resize image from given file.
How to rotate Bitmap in Android?
We can rotate given bitmap by below functionality
Bitmap RotateBitmap(Bitmap source, float angle) |
in the above method pass bitmap which we need to ratate and pass rotation angle
Generate Bitmap from drawable image
|
References:
- http://www.peachpit.com/articles/article.aspx?p=1846580&seqNum=2
- http://code.tutsplus.com/tutorials/android-user-interface-design-basic-image-controls--mobile-6846
- http://developer.android.com/reference/android/widget/ImageView.html
- http://developer.android.com/guide/practices/screens_support.html
- https://code.google.com/p/svg-android/wiki/Tutorial
- https://github.com/android/platform_frameworks_base/blob/master/core/java/android/widget/ImageView.java#L903-L907
- https://robots.thoughtbot.com/android-imageview-scaletype-a-visual-guide
Article Contributed By :
|
|
|
|
6011 Views |