EBST_CAM
Loading...
Searching...
No Matches
Direct2dViewer_c.h
Go to the documentation of this file.
1/*****************************************************************/
9
10#pragma once
11
12#ifndef MINIMAL_BUILD
13
14#include <windows.h>
15//also defined in Direct2dViewer.h
16#define WM_2DVIEWER_CLOSED (WM_USER + 0x0001)
17
18#ifdef __cplusplus
19extern "C"
20{
21#endif
22 void* Direct2dViewer_new();
23 void Direct2dViewer_delete( void *D2dV );
24 void Direct2dViewer_start2dViewer( void *D2dV, HWND hWndParent, void *bitmapAddr, UINT width, UINT height );
25 void Direct2dViewer_showNewBitmap( void *D2dV, void *addr, UINT width, UINT height );
26 void Direct2dViewer_repaintWindow( void *D2dV );
27 void Direct2dViewer_setGammaValue( void *D2dV, UINT16 white, UINT16 black );
28 UINT16 Direct2dViewer_getGammaWhite( void *D2dV );
29 UINT16 Direct2dViewer_getGammaBlack( void *D2dV );
30 HWND Direct2dViewer_getWindowHandler( void *D2dV );
31#ifdef __cplusplus
32}
33#endif
34
35#endif
void Direct2dViewer_showNewBitmap(void *D2dV, void *addr, UINT width, UINT height)
Show a new bitmap in 2d viewer.
Definition Direct2dViewer_c.cpp:46
UINT16 Direct2dViewer_getGammaWhite(void *D2dV)
return gamma value white
Definition Direct2dViewer_c.cpp:89
void Direct2dViewer_start2dViewer(void *D2dV, HWND hWndParent, void *bitmapAddr, UINT width, UINT height)
Starts 2d viewer with a initial bitmap. Use this to start 2d viewer. Call constructor before.
Definition Direct2dViewer_c.cpp:35
void Direct2dViewer_setGammaValue(void *D2dV, UINT16 white, UINT16 black)
Set gamma value.
Definition Direct2dViewer_c.cpp:78
HWND Direct2dViewer_getWindowHandler(void *D2dV)
Returns the window handler of 2d viewer.
Definition Direct2dViewer_c.cpp:68
void Direct2dViewer_delete(void *D2dV)
Release resources.
Definition Direct2dViewer_c.cpp:24
void * Direct2dViewer_new()
Initialize members.
Definition Direct2dViewer_c.cpp:15
UINT16 Direct2dViewer_getGammaBlack(void *D2dV)
return gamma value black
Definition Direct2dViewer_c.cpp:99
void Direct2dViewer_repaintWindow(void *D2dV)
Reload the displayed bitmap in 2d viewer.
Definition Direct2dViewer_c.cpp:57