38 #include <visp3/core/vpConfig.h>
40 #if ( defined(VISP_HAVE_GDI) )
41 #ifndef vpGDIRenderer_HH
42 #define vpGDIRenderer_HH
45 #ifndef DOXYGEN_SHOULD_SKIP_THIS
49 #include <visp3/gui/vpWin32Renderer.h>
50 #include <visp3/core/vpImage.h>
51 #include <visp3/core/vpRGBa.h>
52 #include <visp3/core/vpDisplayException.h>
54 #include <visp3/core/vpMath.h>
56 class VISP_EXPORT vpGDIRenderer :
public vpWin32Renderer
71 CRITICAL_SECTION m_criticalSection;
73 unsigned int m_bmp_width;
74 unsigned int m_bmp_height;
79 virtual ~vpGDIRenderer();
81 bool init(HWND hWnd,
unsigned int width,
unsigned int height);
94 const vpColor &color,
unsigned int thickness,
int style=PS_SOLID);
97 unsigned int width,
unsigned int height,
98 const vpColor &color,
bool fill=
false,
99 unsigned int thickness=1);
101 void clear(
const vpColor &color);
103 void drawCircle(
const vpImagePoint ¢er,
unsigned int radius,
104 const vpColor &color,
bool fill=
false,
unsigned int thickness=1);
106 void drawText(
const vpImagePoint &ip,
const char * text,
109 void drawCross(
const vpImagePoint &ip,
unsigned int size,
110 const vpColor &color,
unsigned int thickness=1);
114 const vpColor &color,
unsigned int w,
unsigned int h,
unsigned int thickness=1);
121 bool updateBitmap(HBITMAP& hBmp,
unsigned char * imBuffer,
122 unsigned int w,
unsigned int h);
124 bool updateBitmapROI(
unsigned char * imBuffer,
int i_min,
int j_min,
int w,
int h);
Class to define colors available for display functionnalities.
Class that defines a 2D point in an image. This class is useful for image processing and stores only ...