Hi Markus, I suppose something like (given array is your array of chars) : h = new TH2C("h","Image",640,0.,641.,512,0.,513.); for (int ix=0;ix<640;ix++) { for (iy=0;iy<512;iy++) { h->Fill(ix+0.5,iy+0.5,array[ix][iy]); } } h->Draw("col"); Will do the trick. But be aware that it is a quite big 2D histogram. You should probably work with smaller ones. Cheers Damir Markus Huening wrote: > > Hi Rooters, > > I'm looking for a way to display an Pixel Image, preferably in a Pad with > Axes an stuff. The Data I want to display is stored in an array (640X512) > of chars. Does anybody know how top do this? > > Greetings > > M. Huening > > ====================================================== > Markus Huening > Desy/FDET > Notkestrasse 85 > D-22607 Hamburg > Germany > > Tel: ++49 (040)8998-3030 > Fax: ++49 (040)8998-3094 > e-mail: markus.huening@desy.de -- ===================================================================== | Damir Buskulic | Universite de Savoie/LAPP | | | Chemin de Bellevue, B.P. 110 | | Tel : +33 (0)450091600 | F-74941 Annecy-le-Vieux Cedex | | e-mail: buskulic@lapp.in2p3.fr | FRANCE | ===================================================================== mailto:buskulic@lapp.in2p3.fr
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:37 MET