Re: Drawing 1-bit bitmaps



On 11/1/05, Juhana Sadeharju <kouhia nic funet fi> wrote:
What library can load 1-bit images to a format GTK understands?
My 1-bit images have been very large, the library should be
able to extract only a rectangle from the image before converting
anything to 24-bit.

What library can handle tiled image formats?

I don't think gdkpixbuf can do on-demand conversions like this. It
will load 1-bit images as complete 24-bit images.

The TIFF library can handle 1-bit compressed tiled images and only
convert the areas you need. Perhaps you could call that directly?
ImageMagick has similar facilities: if you call GetImagePixels() it
will, if possible, just decompress that section of the image.

John



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]