Ocean
|
This class implements utilities and helper functions. More...
Static Public Member Functions | |
static void | textOutput (HDC dc, const int x, const int y, const std::string &text) |
Prints a text on the given device context. More... | |
static void | desktopTextOutput (const int x, const int y, const std::string &text) |
Prints a text on the desktop. More... | |
static void | frameOutput (HDC dc, const int x, const int y, const Frame &frame) |
Prints a frame on the given device context. More... | |
static void | frameOutput (HDC dc, const int x, const int y, const unsigned int width, const unsigned int height, const Frame &frame) |
Prints a frame on the given device context. More... | |
static void | desktopFrameOutput (const int x, const int y, const Frame &frame) |
Prints a given frame on the Windows' main desktop at a specified location. More... | |
static void | desktopFrameOutput (const int x, const int y, const unsigned int scale, const Frame &frame) |
Prints a given frame on the Windows' main desktop at a specified location. More... | |
static void | desktopFrameOutput (const int x, const int y, const unsigned int width, const unsigned int height, const Frame &frame) |
Prints a given frame on the Windows' main desktop at a specified location. More... | |
static void | bitmapOutput (HDC dc, const int x, const int y, const Bitmap &bitmap) |
Prints a bitmap on the given device context. More... | |
static void | desktopBitmapOutput (const int x, const int y, const unsigned int scale, const Bitmap &bitmap) |
Prints a bitmap on the desktop. More... | |
static void | bitmapOutput (HDC dc, const int x, const int y, const unsigned int width, const unsigned int height, const Bitmap &bitmap) |
Prints a bitmap on the given device context. More... | |
static void | desktopBitmapOutput (const int x, const int y, const Bitmap &bitmap) |
Prints a bitmap on the desktop. More... | |
static void | desktopBitmapOutput (const int x, const int y, const unsigned int width, const unsigned int height, const Bitmap &bitmap) |
Prints a bitmap on the desktop. More... | |
static CV::PixelBoundingBox | textBoundingBox (const std::string &value, const std::string &font=std::string(), const unsigned int size=0u) |
Determines the bounding box of a given string with specified font and font size. More... | |
static CV::PixelBoundingBox | textBoundingBox (const std::wstring &value, const std::wstring &font=std::wstring(), const unsigned int size=0u) |
Determines the bounding box of a given string with specified font and font size. More... | |
This class implements utilities and helper functions.
|
static |
Prints a bitmap on the given device context.
dc | Device context receiving the bitmap |
x | Horizontal output position |
y | Vertical output position |
bitmap | bitmap to be printed |
|
static |
Prints a bitmap on the given device context.
dc | Device context receiving the text |
x | Horizontal output position |
y | Vertical output position |
width | Output width in pixel |
height | Output height in pixel |
bitmap | bitmap to be printed |
|
static |
Prints a bitmap on the desktop.
x | Horizontal output position |
y | Vertical output position |
bitmap | bitmap to be printed |
|
inlinestatic |
Prints a bitmap on the desktop.
x | Horizontal output position |
y | Vertical output position |
scale | Scale of the output bitmap |
bitmap | Bitmap to be printed |
|
static |
Prints a bitmap on the desktop.
x | Horizontal output position |
y | Vertical output position |
width | Output width in pixel |
height | Output height in pixel |
bitmap | bitmap to be printed |
|
static |
Prints a given frame on the Windows' main desktop at a specified location.
You do not need to have a GUI application to use this function.
Call this function from any application and from any thread.
The painted frame will disappear immediately when Windows receives any repaint event.
This function is intended for debugging purposes only.
x | Horizontal output position, with range (-infinity, infinity) |
y | Vertical output position, with range (-infinity, infinity) |
frame | The frame to be printed |
|
inlinestatic |
Prints a given frame on the Windows' main desktop at a specified location.
You do not need to have a GUI application to use this function.
Call this function from any application and from any thread.
The painted frame will disappear immediately when Windows receives any repaint event.
This function is intended for debugging purposes only.
x | Horizontal output position, with range (-infinity, infinity) |
y | Vertical output position, with range (-infinity, infinity) |
scale | The scale that is applied to the frame, a factor of 2 will increase the painted frame by two, with range [1, infinity) |
frame | The frame to be printed |
|
static |
Prints a given frame on the Windows' main desktop at a specified location.
You do not need to have a GUI application to use this function.
Call this function from any application and from any thread.
The painted frame will disappear immediately when Windows receives any repaint event.
This function is intended for debugging purposes only.
x | Horizontal output position, with range (-infinity, infinity) |
y | Vertical output position, with range (-infinity, infinity) |
width | The width of the painted frame in the domain of the desktop, in pixel, with range [1, infinity) |
height | The height of the painted frame in the domain of the desktop, in pixel, with range [1, infinity) |
frame | The frame to be printed |
|
static |
Prints a text on the desktop.
x | Horizontal output position |
y | Vertical output position |
text | Text to be printed |
|
static |
Prints a frame on the given device context.
dc | Device context receiving the frame |
x | Horizontal output position |
y | Vertical output position |
frame | The frame to be printed |
|
static |
Prints a frame on the given device context.
dc | Device context receiving the text |
x | Horizontal output position |
y | Vertical output position |
width | Output width in pixel |
height | Output height in pixel |
frame | The frame to be printed |
|
static |
Determines the bounding box of a given string with specified font and font size.
value | The string for which the bounding box will be determined |
font | The name of the font which will be applied |
size | The size of the font |
|
static |
Determines the bounding box of a given string with specified font and font size.
value | The string for which the bounding box will be determined |
font | The name of the font which will be applied |
size | The size of the font |
|
static |
Prints a text on the given device context.
dc | Device context receiving the text |
x | Horizontal output position |
y | Vertical output position |
text | Text to be printed |