l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2003 Oct 16 23:44

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] reading bitmaps in XLib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] reading bitmaps in XLib

On Fri, Oct 17, 2003 at 03:21:39PM +1000, Julie Russell wrote:
> Hi Everyone,
> I am trying to display a bitmap(.bmp) on the screen using xlib. I am using
> XReadBitmapFile to load the bitmap but it is giving me a BitmapFileInvalid
> on return.

As someone else mentioned Xlib's idea of a "bitmap" is an XBM file
(literally a bit map... black, white, the end :^) ), and can't open
Windows BMP files.

Depending on what you're doing, you might want to look into a higher
level API.  Personally, I write lots of games, and use
Simple DirectMedia Layer (SDL) to handle all of the blitting and
dealing with input and sound and such.

What's nice about it, is that it runs on a variety of platforms.
It's Open Source (LGPL), of course.  And, it handles BMP loading internally!
(There's also an add-on lib to load GIF, JPEG, PNG, etc.)
See: http://www.libsdl.org/

If you need something less gamey and more GUI, you might want to look
into the usual suspects like GTK+ and Qt, or the less usual suspects like

Good luck!

bill@newbreedsoftware.com                           Got kids?  Get Tux Paint! 
http://newbreedsoftware.com/bill/       http://newbreedsoftware.com/tuxpaint/

[*] Or is it wxWindow?
vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Appahost Applications
For a significant contribution towards our projector, and a generous donation to allow us to continue meeting at the Davis Library.