EBST_CAM
Loading...
Searching...
No Matches
Direct2dViewer Class Reference

#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
 

Constructor & Destructor Documentation

◆ Direct2dViewer()

Direct2dViewer::Direct2dViewer ( )

Initialize members.

◆ ~Direct2dViewer()

Direct2dViewer::~Direct2dViewer ( )

Release resources.

Member Function Documentation

◆ GetGammaBlack()

UINT16 Direct2dViewer::GetGammaBlack ( )

return gamma value black

◆ GetGammaWhite()

UINT16 Direct2dViewer::GetGammaWhite ( )

return gamma value white

◆ getWindowHandler()

HWND Direct2dViewer::getWindowHandler ( )

Returns the window handler of 2d viewer.

◆ repaintWindow()

void Direct2dViewer::repaintWindow ( )

Reload the displayed bitmap in 2d viewer.

◆ SetGammaValue()

void Direct2dViewer::SetGammaValue ( UINT16 white,
UINT16 black )

Set gamma value.

Parameters
[in]whiteset value for maximum brightness. Default: 0xFFFF (16 bit), 0x3FFF (14 bit)
[in]blackset value for minimum brightness. Default: 0

◆ showNewBitmap()

void Direct2dViewer::showNewBitmap ( void * addr,
UINT width,
UINT height )

Show a new bitmap in 2d viewer.

Parameters
addrAddress to first byte of bitmap data.
widthWidth of bitmap.
heightHeight of bitmap.

◆ start2dViewer()

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.

Parameters
hWndParentWindow handler of parent window.
bitmapAddrAddress to first byte of bitmap data.
widthWidth of bitmap.
heightHeight of bitmap.

The documentation for this class was generated from the following files: