Documentation Portal      

What are you looking for?

EBaseROI::DrawFrame

Draws a rectangular frame around an image or ROI.

Namespace: Euresys::Open_eVision_2_6

[C++]

void DrawFrame(
   EDrawAdapter* graphicContext,
   Euresys::Open_eVision_2_6::EFramePosition framePosition,
   BOOL handles,
   float zoomX,
   float zoomY,
   float x,
   float y
)

void DrawFrame(
   EDrawAdapter* graphicContext,
   BOOL handles,
   float zoomX,
   float zoomY,
   float x,
   float y
)

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

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

void DrawFrame(
   HDC graphicContext,
   const ERGBColor& color,
   BOOL bHandles,
   float zoomX,
   float zoomY,
   float x,
   float y
)

Parameters

graphicContext

Handle to the device context of the destination window.

framePosition

-

handles

TRUE if handles are to be drawn.

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.

bHandles

-

color

-

Remarks

A frame can be drawn (using a device context) around an image or ROI, possibly with 9 sizing handles. A suitable default pen is used (see EBaseROI::DrawFrameWithCurrentPen if you wish to use the pen currently selected into the device context). 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.DrawFrame

Draws a rectangular frame around an image or ROI.

Namespace: Euresys.Open_eVision_2_6

[C#]

void DrawFrame(
   Euresys.Open_eVision_2_6.EDrawAdapter graphicContext,
   Euresys.Open_eVision_2_6.EFramePosition framePosition,
   bool handles,
   float zoomX,
   float zoomY,
   float x,
   float y
)

void DrawFrame(
   Euresys.Open_eVision_2_6.EDrawAdapter graphicContext,
   bool handles,
   float zoomX,
   float zoomY,
   float x,
   float y
)

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

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

void DrawFrame(
   IntPtr graphicContext,
   Euresys.Open_eVision_2_6.ERGBColor color,
   bool bHandles,
   float zoomX,
   float zoomY,
   float x,
   float y
)

Parameters

graphicContext

Handle to the device context of the destination window.

framePosition

-

handles

TRUE if handles are to be drawn.

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.

bHandles

-

color

-

Remarks

A frame can be drawn (using a device context) around an image or ROI, possibly with 9 sizing handles. A suitable default pen is used (see EBaseROI::DrawFrameWithCurrentPen if you wish to use the pen currently selected into the device context). 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