Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Jam321
Posts: 59
Registered: ‎06-15-2012
My Device: 9800

Reduce The Image Size

 

Hi,

         I have develope the  application in which i will snap the image using videocontrol.getsnapshot(....). and it is

working fine.and i store in to the internal memory ..... " but the problem is , it is creating the image  size  either 640*480, 1024*724... so on , but  i am want reduce the image size like 32*32 or 200*200 (measn user manully i want to define the size).  so how can i do that from the internal memory . and i want to also create the thumbnail is it posiible. if possible please share the code.

 

i am storing the image in jpg or png ,  and am using blackberry os 6.0,

 

Thanks in advance

Developer
peter_strange
Posts: 19,610
Registered: ‎07-14-2008
My Device: Not Specified

Re: Reduce The Image Size

Do a search for things like 'scale image' or 'resize image' or 'resize bitmap'- there have been similar questions asked in the past and I am sure you wil find your answer if you look.

 

You might also want to look at the Bitmap scaleInto function in the JavaDocs.  .