Basic Image AlgorithmS Library
2.8.0
|
Writing a text in an bias image usig a wx device context This class uses wxDC and thus it can only be used in wx GUI applications. More...
#include <Gui/DrawTextWx.hh>
Public Types | |
enum | EHorizontalAlign { H_ALIGN_LEFT, H_ALIGN_CENTER, H_ALIGN_RIGHT } |
enum | EVerticalAlign { V_ALIGN_TOP, V_ALIGN_CENTER, V_ALIGN_BOTTOM } |
Public Member Functions | |
DrawTextWx () | |
~DrawTextWx () | |
Static Public Member Functions | |
static int | GetTextExtend (const std::string &text, unsigned &width, unsigned &height, const unsigned point_size=8) |
returns size of the bounding box of the text More... | |
static int | Text (Image< StorageType > &im, const std::string &text, const unsigned &pos_x, const unsigned &pos_y, const ColourRGB< StorageType > &foreground_color=COLOR_WHITE, const ColourRGB< StorageType > &background_color=COLOR_BLACK, const unsigned point_size=8, const enum EVerticalAlign vertical_align=V_ALIGN_TOP, const enum EHorizontalAlign horizontal_align=H_ALIGN_LEFT) |
write text in an image !!! Can only be used in wx-GUI applications which implement wxApp !!! More... | |
Writing a text in an bias image usig a wx device context This class uses wxDC and thus it can only be used in wx GUI applications.
!! It does not work for console applications !!!
Definition at line 45 of file DrawTextWx.hh.
enum BIAS::DrawTextWx::EHorizontalAlign |
Enumerator | |
---|---|
H_ALIGN_LEFT | |
H_ALIGN_CENTER | |
H_ALIGN_RIGHT |
Definition at line 50 of file DrawTextWx.hh.
enum BIAS::DrawTextWx::EVerticalAlign |
Enumerator | |
---|---|
V_ALIGN_TOP | |
V_ALIGN_CENTER | |
V_ALIGN_BOTTOM |
Definition at line 48 of file DrawTextWx.hh.
|
inline |
Definition at line 52 of file DrawTextWx.hh.
|
inline |
Definition at line 54 of file DrawTextWx.hh.
|
static |
returns size of the bounding box of the text
Definition at line 15 of file DrawTextWx.cpp.
References BIAS::AsciiToWx().
|
static |
write text in an image !!! Can only be used in wx-GUI applications which implement wxApp !!!
Definition at line 47 of file DrawTextWx.cpp.
References BIAS::AsciiToWx(), BIAS::ImageBase::CM_RGB, BIAS::ImageBase::GetChannelCount(), BIAS::ImageBase::GetColorModel(), BIAS::ImageBase::GetHeight(), BIAS::Image< StorageType >::GetImageData(), BIAS::ImageBase::GetSizeByte(), and BIAS::ImageBase::GetWidth().