png Image Resize
Hi All members,
I m working on One BREW mobile Application, for that i need to resize some png (.png) images. For some images i can use the BREW apis to resize that.
But with lower version of Brew we dont have direct API to resize the image.
Here We i have to do is
"I need to resize that image dynamically".
"I need to access that and need to resize or reduce pixels"
Can anybody help me on resizing PNG images?
Or Can you please let me know the proper algorithm to resize png image.
Thanks in advance......
Sorry if asking much......
Resizing images can be a bit tricky. It's probably better to find a resizing algorithm and use that - there are different methods involving "how to arrange multiple pixels into one".
thanks mat for reply....
do u have any experience on that....
do u know where i can find the proper way....
Well, to start with, I think you should separate the PNG format and the resizing. Resizing is done on bitmap data, not on PNG, JPG, TIFF or any other files - the format of the datacontent should be unpacked into a format that consists of a some sort of array or other type of "collection" of pixels.
Once you have that, you could simply average x number of pixels into one pixel. This is possibly sufficient.
There seems to be a "scale image" mechanism in Brew, from what I can tell.