@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 <[email protected]> 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 > _______________________________________________ xorg-devel mailing list [email protected] http://lists.x.org/mailman/listinfo/xorg-devel
