|
EBST_CAM
|
Wrapper for Direct2dViewer.cpp to provide a C API. More...
#include <windows.h>Go to the source code of this file.
Macros | |
| #define | WM_2DVIEWER_CLOSED (WM_USER + 0x0001) |
Functions | |
| void * | Direct2dViewer_new () |
| Initialize members. | |
| void | Direct2dViewer_delete (void *D2dV) |
| Release resources. | |
| 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. | |
| void | Direct2dViewer_showNewBitmap (void *D2dV, void *addr, UINT width, UINT height) |
| Show a new bitmap in 2d viewer. | |
| void | Direct2dViewer_repaintWindow (void *D2dV) |
| Reload the displayed bitmap in 2d viewer. | |
| void | Direct2dViewer_setGammaValue (void *D2dV, UINT16 white, UINT16 black) |
| Set gamma value. | |
| UINT16 | Direct2dViewer_getGammaWhite (void *D2dV) |
| return gamma value white | |
| UINT16 | Direct2dViewer_getGammaBlack (void *D2dV) |
| return gamma value black | |
| HWND | Direct2dViewer_getWindowHandler (void *D2dV) |
| Returns the window handler of 2d viewer. | |
Wrapper for Direct2dViewer.cpp to provide a C API.
Inspired by this tutorial to call cpp methods from c: https://bytes.com/topic/c/insights/921728-calling-c-class-methods-c
| #define WM_2DVIEWER_CLOSED (WM_USER + 0x0001) |
| void Direct2dViewer_delete | ( | void * | D2dV | ) |
Release resources.
| [in] | D2dV | Handle of Direct2dViewer instance. |
| UINT16 Direct2dViewer_getGammaBlack | ( | void * | D2dV | ) |
return gamma value black
| [in] | D2dV | Handle of Direct2dViewer instance. |
| UINT16 Direct2dViewer_getGammaWhite | ( | void * | D2dV | ) |
return gamma value white
| [in] | D2dV | Handle of Direct2dViewer instance. |
| HWND Direct2dViewer_getWindowHandler | ( | void * | D2dV | ) |
Returns the window handler of 2d viewer.
| [in] | D2dV | Handle of Direct2dViewer instance. |
| void * Direct2dViewer_new | ( | ) |
Initialize members.
| void Direct2dViewer_repaintWindow | ( | void * | D2dV | ) |
Reload the displayed bitmap in 2d viewer.
| [in] | D2dV | Handle of Direct2dViewer instance. |
| void Direct2dViewer_setGammaValue | ( | void * | D2dV, |
| UINT16 | white, | ||
| UINT16 | black ) |
Set gamma value.
| [in] | white | set value for maximum brightness. Default: 0xFFFF (16 bit), 0x3FFF (14 bit) |
| [in] | black | set value for minimum brightness. Default: 0 |
| [in] | D2dV | Handle of Direct2dViewer instance. |
| void Direct2dViewer_showNewBitmap | ( | void * | D2dV, |
| void * | addr, | ||
| UINT | width, | ||
| UINT | height ) |
Show a new bitmap in 2d viewer.
| addr | Address to first byte of bitmap data. | |
| width | Width of bitmap. | |
| height | Height of bitmap. | |
| [in] | D2dV | Handle of Direct2dViewer instance. |
| 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.
| [in] | hWndParent | Window handler of parent window. |
| [in] | bitmapAddr | Address to first byte of bitmap data. |
| [in] | width | Width of bitmap. |
| [in] | height | Height of bitmap. |
| [in] | D2dV | Handle of Direct2dViewer instance. |