39#include <visp3/core/vpConfig.h>
41#if (defined(VISP_HAVE_GDI))
42#ifndef vpGDIRenderer_HH
43#define vpGDIRenderer_HH
45#ifndef DOXYGEN_SHOULD_SKIP_THIS
52#include <visp3/core/vpDisplayException.h>
53#include <visp3/core/vpImage.h>
54#include <visp3/core/vpRGBa.h>
55#include <visp3/gui/vpWin32Renderer.h>
57#include <visp3/core/vpMath.h>
59class VISP_EXPORT vpGDIRenderer :
public vpWin32Renderer
74 CRITICAL_SECTION m_criticalSection;
76 unsigned int m_bmp_width;
77 unsigned int m_bmp_height;
82 virtual ~vpGDIRenderer();
84 bool init(HWND hWnd,
unsigned int width,
unsigned int height);
96 int style = PS_SOLID);
98 void drawRect(
const vpImagePoint &topLeft,
unsigned int width,
unsigned int height,
const vpColor &color,
99 bool fill =
false,
unsigned int thickness = 1);
101 void clear(
const vpColor &color);
103 void drawCircle(
const vpImagePoint ¢er,
unsigned int radius,
const vpColor &color,
bool fill =
false,
104 unsigned int thickness = 1);
108 void drawCross(
const vpImagePoint &ip,
unsigned int size,
const vpColor &color,
unsigned int thickness = 1);
111 unsigned int thickness = 1);
117 bool updateBitmap(HBITMAP &hBmp,
unsigned char *imBuffer,
unsigned int w,
unsigned int h);
119 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 ...
Definition of the vpImage class member functions.