Discussion Board

Results 1 to 2 of 2
  1. #1
    Hi,
    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
    Registered User grahamhughes's Avatar
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,394
    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.

    Code:
    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.

    Graham.

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. What are the different image formats and maximum sizes supported for each v
    By ask_expert in forum Mobile Web Site Development
    Replies: 1
    Last Post: 2002-05-10, 15:53
  5. Image formats supported in Nokia 9210 Communicator
    By cl_razel1 in forum Symbian C++
    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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved