Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Thumbnail creation of the image  RSS feed

 
chetan dhumane
Ranch Hand
Posts: 643
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to create the thumbnail of the image.
We can compress the image using Bitmap.compressformat but If we put the image size bigger than 1.5 MB.
The function is not capable to compress it.
 
Ankit Garg
Sheriff
Posts: 9610
37
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use Canvas class to draw an image of any size from another image...
 
chetan dhumane
Ranch Hand
Posts: 643
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got the good solution for it.
You can even compress the image as you wish.
Use Bitmapfactory.options to do it.
Check out the code.

Refer it.
Refer this link.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!