Re: Display my data array as an image
Make a pixmap with dimensions x,y.
Define a sensible colormap.
Transform your array values into color and save in correct pixmap pixel.
See qcolormap and qpixmap
Edit: looks like qcolormap isn't quite what I thougt, so you might have to make your own map for that step.
Last edited by amleto; 4th December 2012 at 07:15.
If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.
Bookmarks