34 #ifndef VP_GDI_RENDERER_H
35 #define VP_GDI_RENDERER_H
37 #include <visp3/core/vpConfig.h>
39 #if (defined(VISP_HAVE_GDI))
41 #ifndef DOXYGEN_SHOULD_SKIP_THIS
48 #include <visp3/core/vpDisplayException.h>
49 #include <visp3/core/vpImage.h>
50 #include <visp3/core/vpRGBa.h>
51 #include <visp3/gui/vpWin32Renderer.h>
53 #include <visp3/core/vpMath.h>
57 class VISP_EXPORT vpGDIRenderer :
public vpWin32Renderer
72 CRITICAL_SECTION m_criticalSection;
74 unsigned int m_bmp_width;
75 unsigned int m_bmp_height;
80 virtual ~vpGDIRenderer();
82 bool init(HWND hWnd,
unsigned int width,
unsigned int height);
94 int style = PS_SOLID);
96 void drawRect(
const vpImagePoint &topLeft,
unsigned int width,
unsigned int height,
const vpColor &color,
97 bool fill =
false,
unsigned int thickness = 1);
99 void clear(
const vpColor &color);
101 void drawCircle(
const vpImagePoint ¢er,
unsigned int radius,
const vpColor &color,
bool fill =
false,
102 unsigned int thickness = 1);
106 void drawCross(
const vpImagePoint &ip,
unsigned int size,
const vpColor &color,
unsigned int thickness = 1);
109 unsigned int thickness = 1);
115 bool updateBitmap(HBITMAP &hBmp,
unsigned char *imBuffer,
unsigned int w,
unsigned int h);
117 bool updateBitmapROI(
unsigned char *imBuffer,
int i_min,
int j_min,
int w,
int h);
Class to define RGB colors available for display functionalities.
Class that defines a 2D point in an image. This class is useful for image processing and stores only ...