Submitted by Anonymous on Mon, 03/26/2001 - 09:15. Developers
Hi,
I want to use some images in Push Buttons. These images are in .bmp or .gif format. How can I use them?
There`s a hard way and an easy way. The hard way is to add a converter to your application that can read these images and generate X pixmaps. This route involves adding lots of image-processing code to your application.
The easier way is to convert your images to a more useful format. You can use an off-line tool such as ImageMagick or GIMP to rewrite these images as XPM files. XPM is a human- and computer-readable format similar to the X bitmap format, but for both two-color and multi-color images. You can then pick up the XPM library (from http//www.x.org or one of the inria.fr sites) and use it to read the images -- or, if you`re on Motif 2, the converters are already present.
There`s a hard way and an easy way. The hard way is to add a converter to your application that can read these images and generate X pixmaps. This route involves adding lots of image-processing code to your application.
The easier way is to convert your images to a more useful format. You can use an off-line tool such as ImageMagick or GIMP to rewrite these images as XPM files. XPM is a human- and computer-readable format similar to the X bitmap format, but for both two-color and multi-color images. You can then pick up the XPM library (from http//www.x.org or one of the inria.fr sites) and use it to read the images -- or, if you`re on Motif 2, the converters are already present.