This week's book giveaway is in the HTML, CSS and JavaScript forum.
We're giving away four copies of hapi.js in Action and have Matt Harrison on-line!
See this thread for details.
Win a copy of hapi.js in Action this week in the HTML, CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Thumbnail creation of the image

 
chetan dhumane
Ranch Hand
Posts: 641
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: 9587
33
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: 641
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!