Can we display png image on plplot graph window ?
you would need plimage or plimagefr - http://plplot.sourceforge.net/docbook-manual/plplot-html-5.9.2/plimage.html . Look also at example 20. You need to load the png image before into an 2d array. You might use libpng or th gd library for that. These two libraries are known to work also with Borland c++.
In example x20, we are displaying gray pgm image. Can you please tell me how to display colored png image on plplot window.
I can't help you here. As I already wrote you would need the gd library or libpng library to open and read a png file. It should be not that hard to get then an array and tell PLplot about that according to what was done in example 20. I've never done that before and also no time to help you here any further.
I'm opening this question again. I'm using libpng to try and plot a png file instead of the pgm used in example 20. The problem I'm having is that I'm not sure how to take an RGBA matrix(four 2D-uints martrices) and convert it to a single 2D PLFLT matrix to plot using PLplot.
Any guidance will be most appreciative.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.