EZMap8::DrawImage

Displays the internal image buffer

Namespace: Euresys::Open_eVision::Easy3D

[C++]

void DrawImage(
   EDrawAdapter* graphicContext,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   EC24 colorUndefinedPixel
)

void DrawImage(
   EDrawAdapter* graphicContext,
   EC24Vector* c24Vector,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   EC24 colorUndefinedPixel
)

void DrawImage(
   EDrawAdapter* graphicContext,
   EBW8Vector* bw8Vector,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   EC24 colorUndefinedPixel
)

void DrawImage(
   HDC graphicContext,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   EC24 colorUndefinedPixel
)

void DrawImage(
   HDC graphicContext,
   EC24Vector* c24Vector,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   EC24 colorUndefinedPixel
)

void DrawImage(
   HDC graphicContext,
   EBW8Vector* bw8Vector,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   EC24 colorUndefinedPixel
)

Parameters

graphicContext

Handle to the device context of the destination window.

zoomX

Magnification factor for zooming in or out in the horizontal direction. By default, the image is displayed in 1:1 scale.

zoomY

Magnification factor for zooming in or out in the vertical direction. Setting a 0 value (which is the default) will result in isotropic scaling (i.e. equal horizontal and vertical factors).

panX

Horizontal panning value expressed in pixels. By default, no panning occurs.

panY

Vertical panning value expressed in pixels. By default, no panning occurs.

colorUndefinedPixel

An optional parameter to choose the drawing color of undefined pixels.

c24Vector

When supplied, this parameter allows using a LUT that maps from Depth to C24 when drawing (false colors).

bw8Vector

When supplied, this parameter allows using a LUT that maps from Depth to BW8 when drawing.

Remarks

An image can be drawn (its pixels rendered) using a device context. EZMap8::Draw and EZMap8::DrawImage produce the same output.
The horizontal and vertical zooming factors can be different but must be in the 1/16..16 range.
(MFC users can use the CDC::GetSafeHdc() method to obtain a suitable device context handle from a CDC instance.) Deprecation notice: All methods taking HDC as parameter are deprecated. It is recommended to use their alternative taking a EDrawAdapter by using a instance of EWindowsDrawAdapter.

EZMap8.DrawImage

Displays the internal image buffer

Namespace: Euresys.Open_eVision.Easy3D

[C#]

void DrawImage(
   Euresys.Open_eVision.EDrawAdapter graphicContext,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   Euresys.Open_eVision.EC24 colorUndefinedPixel
)

void DrawImage(
   Euresys.Open_eVision.EDrawAdapter graphicContext,
   Euresys.Open_eVision.EC24Vector c24Vector,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   Euresys.Open_eVision.EC24 colorUndefinedPixel
)

void DrawImage(
   Euresys.Open_eVision.EDrawAdapter graphicContext,
   Euresys.Open_eVision.EBW8Vector bw8Vector,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   Euresys.Open_eVision.EC24 colorUndefinedPixel
)

void DrawImage(
   IntPtr graphicContext,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   Euresys.Open_eVision.EC24 colorUndefinedPixel
)

void DrawImage(
   IntPtr graphicContext,
   Euresys.Open_eVision.EC24Vector c24Vector,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   Euresys.Open_eVision.EC24 colorUndefinedPixel
)

void DrawImage(
   IntPtr graphicContext,
   Euresys.Open_eVision.EBW8Vector bw8Vector,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   Euresys.Open_eVision.EC24 colorUndefinedPixel
)

Parameters

graphicContext

Handle to the device context of the destination window.

zoomX

Magnification factor for zooming in or out in the horizontal direction. By default, the image is displayed in 1:1 scale.

zoomY

Magnification factor for zooming in or out in the vertical direction. Setting a 0 value (which is the default) will result in isotropic scaling (i.e. equal horizontal and vertical factors).

panX

Horizontal panning value expressed in pixels. By default, no panning occurs.

panY

Vertical panning value expressed in pixels. By default, no panning occurs.

colorUndefinedPixel

An optional parameter to choose the drawing color of undefined pixels.

c24Vector

When supplied, this parameter allows using a LUT that maps from Depth to C24 when drawing (false colors).

bw8Vector

When supplied, this parameter allows using a LUT that maps from Depth to BW8 when drawing.

Remarks

An image can be drawn (its pixels rendered) using a device context. EZMap8::Draw and EZMap8::DrawImage produce the same output.
The horizontal and vertical zooming factors can be different but must be in the 1/16..16 range.
(MFC users can use the CDC::GetSafeHdc() method to obtain a suitable device context handle from a CDC instance.) Deprecation notice: All methods taking HDC as parameter are deprecated. It is recommended to use their alternative taking a EDrawAdapter by using a instance of EWindowsDrawAdapter.