Read and display an image with Xlib
Hi all,
I would like to read a PPM or BMP image (or just any other format) from a file and display it in a Xlib window. Is there any way to do this ? Links with examples or snipplets are very much welcome ! Many thanks in advance. L |
Imagemagick can display all common image format files, as well as a host of other image processing. The 'display' tool is the one you want. Imagemagick is probably available as part of most distro repositories.
--- rod. |
Hi, Im actually looking for programming it myself in C / C++ with Xlib, i.e. programatically rather than using command line.
|
I think Imagemagick also provides a C language API library that implements most of it's functionality.
--- rod. |
All times are GMT -5. The time now is 07:39 PM. |