CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Threaded View

  1. #1
    Join Date
    Sep 2004
    Location
    Israel
    Posts
    113

    Question How to load binary image with 1 Bit Per Pixel ?

    Hi Everyone,

    I have a TIF file 62992 x 113386 Pixels, Huffman RLE compression, 3200 x 3200 DPI resolution, binary colored (1 Bit Per Pixel), file on disk size 43.08 MB (45,169,042 Bytes).
    This kind of image should consume 851.66 MB (893,028,184 Bytes) of memory when loaded, and this is exactly what I want it to consume.
    Otherwise; the representation per pixel will be 1 byte (8 Bits), which means that this kind of image will require 6.652 GB (7,142,410,912 Bytes) that I absolutely can not have in any possible way.

    Therefore I need to load this image as a binary image (1 Bit Per Pixel).

    Can anybody tell me how can I do that please.


    --------
    Thanks
    Sharon
    Last edited by sharong; September 29th, 2005 at 06:02 AM. Reason: LF

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured