34 #ifndef VP_WIN32_API_H
35 #define VP_WIN32_API_H
37 #include <visp3/core/vpConfig.h>
39 #if (defined(VISP_HAVE_GDI) || defined(VISP_HAVE_D3D9))
49 DWORD vpProcessErrors(
const std::string &api_name);
50 void vpSelectObject(HWND hWnd, HDC hDC, HDC hDCMem, HGDIOBJ h);
51 void vpPrepareImageWithPen(CRITICAL_SECTION *CriticalSection, HWND hWnd, HBITMAP bmp, COLORREF color,
52 unsigned int thickness,
int style, HDC &hDCScreen, HDC &hDCMem, HPEN &hPen);
53 void vpEnterCriticalSection(LPCRITICAL_SECTION lpCriticalSection);
54 void vpLeaveCriticalSection(LPCRITICAL_SECTION lpCriticalSection);
55 BOOL vpReleaseSemaphore(HANDLE hSemaphore, LONG IReleaseCount, LPLONG lpPreviousCount);
56 BOOL vpLineTo(HDC hdc,
int nXEnd,
int nYEnd);
57 BOOL vpMoveToEx(HDC hdc,
int X,
int Y, LPPOINT lpPoint);
58 BOOL vpBitBlt(HDC hdcDest,
int nXDest,
int nYDest,
int nWidth,
int nHeight, HDC hdcSrc,
int nXSrc,
int nYSrc,
60 BOOL vpInvalidateRect(HWND hWnd,
const RECT *lpRect, BOOL bErase);
61 COLORREF vpSetPixel(HDC hdc,
int X,
int Y, COLORREF crColor);
62 HBITMAP vpCreateBitmap(
int nWidth,
int nHeight, UINT cPlanes, UINT cBitsPerPel,
const VOID *lpvBits);