Documentation Portal      

What are you looking for?

EBaseROI::DrawFrameWithCurrentPen

Draws a rectangular frame around an image or ROI.

Namespace: Euresys::Open_eVision_2_6

[C++]

void DrawFrameWithCurrentPen(
   HDC graphicContext,
   BOOL bHandles,
   float zoomX,
   float zoomY,
   float x,
   float y
)

void DrawFrameWithCurrentPen(
   HDC graphicContext,
   Euresys::Open_eVision_2_6::EFramePosition framePosition,
   BOOL bHandles,
   float zoomX,
   float zoomY,
   float x,
   float y
)

Parameters

graphicContext

Handle to the device context of the destination window.

bHandles

-

zoomX

Magnification factor for zooming in or out in the horizontal direction. By default, the image is displayed in TRUE 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).

x

Translation factor for panning in the horizontal direction.

y

Translation factor for panning in the vertical direction.

framePosition

-

Remarks

A frame can be drawn (using a device context) around an image or ROI, possibly with 9 sizing handles. The current device context pen is used. Zooming and panning are possible. Please note that panning is applied before zooming. (MFC users can use the CDC::GetSafeHdc() method to obtain a suitable device context handle from a CDC instance.)

EBaseROI.DrawFrameWithCurrentPen

Draws a rectangular frame around an image or ROI.

Namespace: Euresys.Open_eVision_2_6

[C#]

void DrawFrameWithCurrentPen(
   IntPtr graphicContext,
   bool bHandles,
   float zoomX,
   float zoomY,
   float x,
   float y
)

void DrawFrameWithCurrentPen(
   IntPtr graphicContext,
   Euresys.Open_eVision_2_6.EFramePosition framePosition,
   bool bHandles,
   float zoomX,
   float zoomY,
   float x,
   float y
)

Parameters

graphicContext

Handle to the device context of the destination window.

bHandles

-

zoomX

Magnification factor for zooming in or out in the horizontal direction. By default, the image is displayed in TRUE 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).

x

Translation factor for panning in the horizontal direction.

y

Translation factor for panning in the vertical direction.

framePosition

-

Remarks

A frame can be drawn (using a device context) around an image or ROI, possibly with 9 sizing handles. The current device context pen is used. Zooming and panning are possible. Please note that panning is applied before zooming. (MFC users can use the CDC::GetSafeHdc() method to obtain a suitable device context handle from a CDC instance.)

Which API shall we display?

© 2018 EURESYS s.a.  -  About Documentation  -  Open Source Licenses  -  Open eVision 2.6.1.1110