Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TASUtils Class Reference

Definition at line 29 of file TASUtils.h.

Static Public Member Functions

static Bool_t FillImageFromWindow (TImage *img, Window_t wid, Int_t width, Int_t height)
 Create an image from the given window.
 
static std::unique_ptr< TImage > FromPixmap (Pixmap_t pxm, Pixmap_t mask)
 Create image from pixmap.
 
static std::unique_ptr< TImage > FromWindow (Window_t wid)
 Create an image from the given window.
 
static Pixmap_t GetMask (TImage *timg)
 Returns image mask pixmap (alpha channel).
 
static Pixmap_t GetPixmap (TImage *timg)
 Returns image pixmap.
 
static Bool_t PaintImage (TImage *timg, Drawable_t wid, Int_t x, Int_t y, Bool_t opaque=kFALSE)
 Paint image on specified window.
 

#include <TASUtils.h>

Member Function Documentation

◆ FillImageFromWindow()

Bool_t TASUtils::FillImageFromWindow ( TImage * img,
Window_t wid,
Int_t width,
Int_t height )
static

Create an image from the given window.

Definition at line 196 of file TASUtils.cxx.

◆ FromPixmap()

std::unique_ptr< TImage > TASUtils::FromPixmap ( Pixmap_t pxm,
Pixmap_t mask )
static

Create image from pixmap.

Definition at line 268 of file TASUtils.cxx.

◆ FromWindow()

std::unique_ptr< TImage > TASUtils::FromWindow ( Window_t wid)
static

Create an image from the given window.

Definition at line 247 of file TASUtils.cxx.

◆ GetMask()

Pixmap_t TASUtils::GetMask ( TImage * img)
static

Returns image mask pixmap (alpha channel).

The pixmap must deleted by user. Replacement for deprecated TImage::GetMask() method

Definition at line 178 of file TASUtils.cxx.

◆ GetPixmap()

Pixmap_t TASUtils::GetPixmap ( TImage * timg)
static

Returns image pixmap.

The pixmap must deleted by user. Replacement for deprecated TImage::GetPixmap method Special handling for X11-based displays where ASImage has optimized implementation

Definition at line 132 of file TASUtils.cxx.

◆ PaintImage()

Bool_t TASUtils::PaintImage ( TImage * timg,
Drawable_t wid,
Int_t x,
Int_t y,
Bool_t opaque = kFALSE )
static

Paint image on specified window.

Definition at line 314 of file TASUtils.cxx.


The documentation for this class was generated from the following files: