png Image Resize

This is a discussion on png Image Resize within the C Programming forums, part of the General Programming Boards category; Hi All members, I m working on One BREW mobile Application, for that i need to resize some png (.png) ...

  1. #1
    Registered User
    Join Date
    Oct 2007
    Posts
    22

    Exclamation 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......

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    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".

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    Registered User
    Join Date
    Oct 2007
    Posts
    22

    Arrow Resizing algorithm

    thanks mat for reply....

    do u have any experience on that....
    do u know where i can find the proper way....

    bhupesh.

  4. #4
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    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.

    Here: http://www.devx.com/wireless/Article/34305/1954?pf=true

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem reading tiff image files?
    By compz in forum C++ Programming
    Replies: 9
    Last Post: 10-30-2009, 04:17 AM
  2. Replies: 1
    Last Post: 05-27-2009, 12:46 PM
  3. Simple Image Processing
    By ejohns85 in forum C++ Programming
    Replies: 4
    Last Post: 03-19-2009, 12:10 PM
  4. Displaying a PNG image
    By grep in forum Windows Programming
    Replies: 5
    Last Post: 07-07-2005, 08:27 PM
  5. Resize Image File???
    By stickman in forum C++ Programming
    Replies: 4
    Last Post: 09-19-2004, 11:46 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21