error loading pixmap from HD

Sotirios Karavarsamis s.karavarsamis at gmail.com
Mon Nov 2 10:20:30 PST 2009


@alan:
Thanks for your piece of advice. I converted the images into XBM
format and the process worked straight away.
However, I would later try libXpm because I want color images in my
application, not binary.

@ajax:
Thanks. I will check this out.

On Mon, Nov 2, 2009 at 7:12 PM, Adam Jackson <ajax at nwnk.net> wrote:
> On Sun, 2009-11-01 at 23:26 +0200, Sotirios Karavarsamis wrote:
>
>> I am constantly getting a "bitmap invalid file" error (case #2 in the
>> above switch control). In the snippet above, the constant
>> BMP_TILE_BLOCKS is a string representing the path to a PBM/XPM/BMP
>> file on disk. However, neither image format works. How should I
>> correctly load the image file from disk? Or I am I scrueing something
>> in the snippet itself? Also, which image formats work correctly with
>> this particular function?
>
> You could always just install the debuginfo for libX11 and single-step
> through XReadBitmapFileData to see where it's failing.
>
> - ajax
>


More information about the xorg-devel mailing list