Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TASUtils.h
Go to the documentation of this file.
1// @(#)root/asimage:$Id$
2// Author: Sergey Linev 16/10/2026
3
4/*************************************************************************
5 * Copyright (C) 1995-2026, Rene Brun and Fons Rademakers *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#ifndef ROOT_TASUtils
13#define ROOT_TASUtils
14
15//////////////////////////////////////////////////////////////////////////
16// //
17// TASUtils //
18// //
19// Extra functions for TASImage requiring gVirtualX and X11 usage //
20// //
21//////////////////////////////////////////////////////////////////////////
22
23#include "Rtypes.h"
24#include "GuiTypes.h"
25#include <memory>
26
27class TImage;
28
29class TASUtils {
30public:
31 static Pixmap_t GetPixmap(TImage *timg);
32 static Pixmap_t GetMask(TImage *timg);
33
34 static Bool_t PaintImage(TImage *timg, Drawable_t wid, Int_t x, Int_t y, Bool_t opaque = kFALSE);
36
37 static std::unique_ptr<TImage> FromWindow(Window_t wid);
38 static std::unique_ptr<TImage> FromPixmap(Pixmap_t pxm, Pixmap_t mask);
39};
40
41#endif
Handle_t Pixmap_t
Pixmap handle.
Definition GuiTypes.h:31
Handle_t Window_t
Window handle.
Definition GuiTypes.h:29
Handle_t Drawable_t
Drawable handle.
Definition GuiTypes.h:32
constexpr Bool_t kFALSE
Definition RtypesCore.h:109
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t mask
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize wid
Option_t Option_t width
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void pxm
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
static Pixmap_t GetPixmap(TImage *timg)
Returns image pixmap.
Definition TASUtils.cxx:132
static std::unique_ptr< TImage > FromWindow(Window_t wid)
Create an image from the given window.
Definition TASUtils.cxx:247
static Bool_t FillImageFromWindow(TImage *img, Window_t wid, Int_t width, Int_t height)
Create an image from the given window.
Definition TASUtils.cxx:196
static Bool_t PaintImage(TImage *timg, Drawable_t wid, Int_t x, Int_t y, Bool_t opaque=kFALSE)
Paint image on specified window.
Definition TASUtils.cxx:314
static Pixmap_t GetMask(TImage *timg)
Returns image mask pixmap (alpha channel).
Definition TASUtils.cxx:178
static std::unique_ptr< TImage > FromPixmap(Pixmap_t pxm, Pixmap_t mask)
Create image from pixmap.
Definition TASUtils.cxx:268
An abstract interface to image processing library.
Definition TImage.h:30
Double_t y[n]
Definition legend1.C:17
Double_t x[n]
Definition legend1.C:17