|
EBST_CAM
|
#include <Direct2dViewer.h>
Public Member Functions | |
| Direct2dViewer () | |
| Initialize members. | |
| ~Direct2dViewer () | |
| Release resources. | |
| HRESULT | start2dViewer (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 | showNewBitmap (void *addr, UINT width, UINT height) |
| Show a new bitmap in 2d viewer. | |
| void | repaintWindow () |
| Reload the displayed bitmap in 2d viewer. | |
| HWND | getWindowHandler () |
| Returns the window handler of 2d viewer. | |
| void | SetGammaValue (UINT16 white, UINT16 black) |
| Set gamma value. | |
| UINT16 | GetGammaWhite () |
| return gamma value white | |
| UINT16 | GetGammaBlack () |
| return gamma value black | |
| Direct2dViewer::Direct2dViewer | ( | ) |
Initialize members.
| Direct2dViewer::~Direct2dViewer | ( | ) |
Release resources.
| UINT16 Direct2dViewer::GetGammaBlack | ( | ) |
return gamma value black
| UINT16 Direct2dViewer::GetGammaWhite | ( | ) |
return gamma value white
| HWND Direct2dViewer::getWindowHandler | ( | ) |
Returns the window handler of 2d viewer.
| void Direct2dViewer::repaintWindow | ( | ) |
Reload the displayed bitmap in 2d viewer.
| void Direct2dViewer::SetGammaValue | ( | 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 |
| void Direct2dViewer::showNewBitmap | ( | 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. |
| HRESULT Direct2dViewer::start2dViewer | ( | 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. |