LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Read and display an image with Xlib (https://www.linuxquestions.org/questions/programming-9/read-and-display-an-image-with-xlib-907294/)

leistebien 10-09-2011 05:28 PM

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

theNbomr 10-09-2011 06:46 PM

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.

leistebien 10-10-2011 04:36 AM

Hi, Im actually looking for programming it myself in C / C++ with Xlib, i.e. programatically rather than using command line.

theNbomr 10-10-2011 11:28 AM

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.