Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Nov 2009

    Image Formats...??

    sir i am able to capture an image and save it in bmp format...now my next task is to compare two images to find out the difference between them....so for that i have to read the image pixel by pixel....
    I am unable to understand the image format[its header format] from wikis..i am little bit confused how i can read the image height, width,resolution from the header...and put them into programming part such that i can read the data of that image...

    so please give me any link through which i can learn image programming like reading the image data pixel by pixel....

  2. #2
    Super Contributor
    Join Date
    Jun 2003
    Cheshire, UK

    Re: Image Formats...??

    You don't need to understand formats. I'm not sure why you have a BMP, captured images are usually JPEGS. Either way, you would need to convert the captured byte[] into an Image.

    byte[] data = getCapturedImageFromSomewhere();
    Image img = Image.createImage(data, 0, data.length);
    From then on, you can find the width and height by asking the Image object. This we already discussed here.


Similar Threads

  1. load image problem
    By Pmarcoen in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2009-08-23, 06:19
  2. Image to byte[] (without getRGB)
    By lospatzos in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2009-07-28, 17:46
  3. how to cut some part of Image
    By mshouab in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2006-08-04, 09:05
  4. Replies: 1
    Last Post: 2001-12-03, 21:40

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts