FACT++  1.0
MGImage::MGImage ( const TGWindow *  p,
UInt_t  w,
UInt_t  h,
UInt_t  options = kSunkenFrame,
ULong_t  back = fgDefaultFrameBackground 
)

Definition at line 34 of file MGImage.cc.

References fDefGC, fHeight, fId, fImage, fMuxPixmap, and fWidth.

35  : TGFrame(p, w, h, options, back), fWidth(w), fHeight(h)
36 {
37  // p = pointer to MainFrame (not owner)
38  // w = width of frame
39  // h = width of frame
40 
41  //
42  // Creat drawing semaphore
43  //
44  fMuxPixmap = new TMutex;
45 
46  Resize(GetWidth(), GetHeight());
47 
48  //
49  // create empty pixmap
50  //
51  fDefGC = gVirtualX->CreateGC(fId, 0);
52  fImage = (XImage*)gVirtualX->CreateImage(fWidth, fHeight);
53 
54  cout << "Detected Color Depth: " << gVirtualX->GetDepth() << endl;
55 }
TMutex * fMuxPixmap
Definition: MGImage.h:31
UInt_t fHeight
Definition: MGImage.h:29
XImage * fImage
Definition: MGImage.h:23
UInt_t fWidth
Definition: MGImage.h:28
uint16_t fId
Definition: HeadersFAD.h:93
GContext_t fDefGC
Definition: MGImage.h:25