×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    May 2003
    Posts
    76

    difference in image size

    hi all,

    i was interested in raw image data. so, i tried this..........
    loading an image in to an CFbsBitmap Object.
    then use the GetScanline() function to get the image data..... and then copy this data to a file....

    to my surprise when i m chkin the file size it's very large then the original image........

    original image 696KB
    new file 900KB (created via GetScanLine Function)

    any comments

    Rgds

    Gaurav

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165
    Hi

    Firstly what is you image format you atre using ?
    In case your image is compressed, indeed it should be smaller than uncompressed data. In case you are just calculating the bytesize from pixel information, then look this post:

    http://discussion.forum.nokia.com/fo...threadid=21600

    It says somewhere there in the end that there are some "extra" bytes in pixels, which would of course take more space in the destination file.

    If I gathered righ, you would like to make a file that contains pixels of pictures in it. You could do this also with standart bmconv-program. Just define /n, so the output file is uncompressed, then you will have a header there (about 16 bytes) and pixels starting from left uppder corner. This approach would give you the picture size info (in header) as well as you could define the bits/pixel very easily.

    yucca

Posting Permissions

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