Re: Image display problem

From: Valeri Fine (Faine) (fine@bnl.gov)
Date: Thu Jul 22 1999 - 20:45:06 MEST


> hi all!
> 
> Thanks Patrick for your help in displaying gif images in canvas. But it
> seesm that it didn't quite helpful for the kind of work I intend to do.
> Actually, I am writing a image display program that can read an array of
> pixmap from the buffer and display it in the canvas. 
> 
> Please take a look at the following code:
> 
> int main(int argc, char **argv)
> {
>   
> static char hasmail_bmp_data[] = {
>     0x42,0x4d,0xc2,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x42,0x00,0x00,0x00,
>     0x28,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x01,0x00
> };
> 
> TGX11 *gTGX = new TGX11("_image0001" , "Image GUI");
> gTGX->CreateWindow(.....)
> ....confused
> 
> Can any one help me out in that matter..Shall be gratefull 
> 
> Can you also tell me how to Create the Window for a TGX11 object????
> 

  You should not use TGX11 but TGXW instead. This will work for BOTH platform.
  You should NOT create ANY TGXW, TGX11 of TGWin32 object at all but employ that
  ROOT created properly and made available via gGXW global pointer. 
  Howeven either class mentioned is the "ROOT" internal one and was not designed
  for the "end" user.

  I guess 

http://root.cern.ch/root/html/TGXW.html#TGXW:DrawCellArray

method may help you.

  With my regards,
                               Valery



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:36 MET