eVision .NET API
Loading...
Searching...
No Matches
eVision.ECode Class Reference

Represents a Code. More...

Inheritance diagram for eVision.ECode:
Collaboration diagram for eVision.ECode:

Public Member Functions

 ECode ()
 Creates an ECode object.
 ECode (eVision.ECode other)
 Creates an ECode object.
eVision.ERegion ToRegion ()
 Creates an ERegion from the ECode.
eVision.EFrame ToFrame (bool useAngle, eVision.EFrameScaling frameScaling)
 Creates an EFrame from the ECode.
eVision.EFrame ToFrame (bool useAngle, eVision.EFrameScaling frameScaling, eVision.EFrame frame)
 Creates an EFrame from the ECode.
void DrawPosition (eVision.EDrawAdapter graphicsContext, float zoomX, float zoomY, float panX, float panY)
 Draws the Position of the Code.
void DrawPosition (eVision.EDrawAdapter graphicsContext, float zoomX, float zoomY, float panX)
 Draws the Position of the Code.
void DrawPosition (eVision.EDrawAdapter graphicsContext, float zoomX, float zoomY)
 Draws the Position of the Code.
void DrawPosition (eVision.EDrawAdapter graphicsContext, float zoomX)
 Draws the Position of the Code.
void DrawPosition (eVision.EDrawAdapter graphicsContext)
 Draws the Position of the Code.
void DrawPosition (eVision.EDrawAdapter graphicsContext, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY)
 Draws the Position of the Code.
void DrawPosition (eVision.EDrawAdapter graphicsContext, eVision.EFrame frame, float zoomX, float zoomY, float panX)
 Draws the Position of the Code.
void DrawPosition (eVision.EDrawAdapter graphicsContext, eVision.EFrame frame, float zoomX, float zoomY)
 Draws the Position of the Code.
void DrawPosition (eVision.EDrawAdapter graphicsContext, eVision.EFrame frame, float zoomX)
 Draws the Position of the Code.
void DrawPosition (eVision.EDrawAdapter graphicsContext, eVision.EFrame frame)
 Draws the Position of the Code.
void DrawPosition (IntPtr graphicsContext, float zoomX, float zoomY, float panX, float panY)
 Draws the Position of the Code.
void DrawPosition (IntPtr graphicsContext, float zoomX, float zoomY, float panX)
 Draws the Position of the Code.
void DrawPosition (IntPtr graphicsContext, float zoomX, float zoomY)
 Draws the Position of the Code.
void DrawPosition (IntPtr graphicsContext, float zoomX)
 Draws the Position of the Code.
void DrawPosition (IntPtr graphicsContext)
 Draws the Position of the Code.
void DrawPositionWithCurrentPen (IntPtr hDC, float zoomX, float zoomY, float panX, float panY)
 Draws the Position of the Code using the pen currently set in the graphical context.
void DrawPositionWithCurrentPen (IntPtr hDC, float zoomX, float zoomY, float panX)
 Draws the Position of the Code using the pen currently set in the graphical context.
void DrawPositionWithCurrentPen (IntPtr hDC, float zoomX, float zoomY)
 Draws the Position of the Code using the pen currently set in the graphical context.
void DrawPositionWithCurrentPen (IntPtr hDC, float zoomX)
 Draws the Position of the Code using the pen currently set in the graphical context.
void DrawPositionWithCurrentPen (IntPtr hDC)
 Draws the Position of the Code using the pen currently set in the graphical context.
void DrawPosition (System.Drawing.Graphics graphicsContext, float zoomX, float zoomY, float panX, float panY)
 Draws the Position of the Code.
void DrawPosition (System.Drawing.Graphics graphicsContext, float zoomX, float zoomY, float panX)
 Draws the Position of the Code.
void DrawPosition (System.Drawing.Graphics graphicsContext, float zoomX, float zoomY)
 Draws the Position of the Code.
void DrawPosition (System.Drawing.Graphics graphicsContext, float zoomX)
 Draws the Position of the Code.
void DrawPosition (System.Drawing.Graphics graphicsContext)
 Draws the Position of the Code.

Properties

string DecodedString [get]
 Decoded code string.
bool IsGS1 [get]
 Returns whether the decoded string uses the GS1 standard.
eVision.EQuadrangle Position [get]
 Code position.
eVision.EPoint Center [get]
 Returns the center of the ECode.
float SizeX [get]
 Returns the size of the ECode on its X axis. This corresponds to the mean between the sizes of the top and bottom sides of the ECode.
float SizeY [get]
 Returns the size of the ECode on its Y axis. This corresponds to the mean between the sizes of the left and right sides of the ECode.
float Angle [get]
 Returns the angle of the ECode as if it was an ERectangle.
eVision.ECodeType CodeType [get]
 Code type.
eVision.EasyMatrixCode2.EMatrixCode MatrixCode [get]
 Returns the EMatrixCode contained in the ECode. Throws an exception if there is none.
eVision.EasyBarCode2.EBarCode BarCode [get]
 Returns the EBarCode contained in the ECode. Throws an exception if there is none.
eVision.EQRCode QRCode [get]
 Returns the EQRCode contained in the ECode. Throws an exception if there is none.

Detailed Description

Represents a Code.

License(s): EasyMatrixCode and EasyBarCode and EasyQRCode

Constructor & Destructor Documentation

◆ ECode() [1/2]

eVision.ECode.ECode ( )

Creates an ECode object.

◆ ECode() [2/2]

eVision.ECode.ECode ( eVision.ECode other)

Creates an ECode object.

Parameters
otherAnother ECode object to be copied in the new ECode object.

Member Function Documentation

◆ DrawPosition() [1/20]

void eVision.ECode.DrawPosition ( eVision.EDrawAdapter graphicsContext)

Draws the Position of the Code.

Parameters
graphicsContextHandle of the graphics context on which to draw.

◆ DrawPosition() [2/20]

void eVision.ECode.DrawPosition ( eVision.EDrawAdapter graphicsContext,
eVision.EFrame frame )

Draws the Position of the Code.

Parameters
graphicsContextHandle of the graphics context on which to draw.
frameFrame associated with the bar code.

◆ DrawPosition() [3/20]

void eVision.ECode.DrawPosition ( eVision.EDrawAdapter graphicsContext,
eVision.EFrame frame,
float zoomX )

Draws the Position of the Code.

Parameters
graphicsContextHandle of the graphics context on which to draw.
frameFrame associated with the bar code.
zoomXHorizontal zooming factor. By default, true scale is used.

◆ DrawPosition() [4/20]

void eVision.ECode.DrawPosition ( eVision.EDrawAdapter graphicsContext,
eVision.EFrame frame,
float zoomX,
float zoomY )

Draws the Position of the Code.

Parameters
graphicsContextHandle of the graphics context on which to draw.
frameFrame associated with the bar code.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.

◆ DrawPosition() [5/20]

void eVision.ECode.DrawPosition ( eVision.EDrawAdapter graphicsContext,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX )

Draws the Position of the Code.

Parameters
graphicsContextHandle of the graphics context on which to draw.
frameFrame associated with the bar code.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ DrawPosition() [6/20]

void eVision.ECode.DrawPosition ( eVision.EDrawAdapter graphicsContext,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the Position of the Code.

Parameters
graphicsContextHandle of the graphics context on which to draw.
frameFrame associated with the bar code.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

◆ DrawPosition() [7/20]

void eVision.ECode.DrawPosition ( eVision.EDrawAdapter graphicsContext,
float zoomX )

Draws the Position of the Code.

Parameters
graphicsContextHandle of the graphics context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.

◆ DrawPosition() [8/20]

void eVision.ECode.DrawPosition ( eVision.EDrawAdapter graphicsContext,
float zoomX,
float zoomY )

Draws the Position of the Code.

Parameters
graphicsContextHandle of the graphics context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.

◆ DrawPosition() [9/20]

void eVision.ECode.DrawPosition ( eVision.EDrawAdapter graphicsContext,
float zoomX,
float zoomY,
float panX )

Draws the Position of the Code.

Parameters
graphicsContextHandle of the graphics context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ DrawPosition() [10/20]

void eVision.ECode.DrawPosition ( eVision.EDrawAdapter graphicsContext,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the Position of the Code.

Parameters
graphicsContextHandle of the graphics context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

◆ DrawPosition() [11/20]

void eVision.ECode.DrawPosition ( IntPtr graphicsContext)

Draws the Position of the Code.

Parameters
graphicsContextHandle of the graphics context on which to draw.
Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawPosition() [12/20]

void eVision.ECode.DrawPosition ( IntPtr graphicsContext,
float zoomX )

Draws the Position of the Code.

Parameters
graphicsContextHandle of the graphics context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawPosition() [13/20]

void eVision.ECode.DrawPosition ( IntPtr graphicsContext,
float zoomX,
float zoomY )

Draws the Position of the Code.

Parameters
graphicsContextHandle of the graphics context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawPosition() [14/20]

void eVision.ECode.DrawPosition ( IntPtr graphicsContext,
float zoomX,
float zoomY,
float panX )

Draws the Position of the Code.

Parameters
graphicsContextHandle of the graphics context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawPosition() [15/20]

void eVision.ECode.DrawPosition ( IntPtr graphicsContext,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the Position of the Code.

Parameters
graphicsContextHandle of the graphics context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.
Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawPosition() [16/20]

void eVision.ECode.DrawPosition ( System.Drawing.Graphics graphicsContext)

Draws the Position of the Code.

Parameters
graphicsContextHandle of the graphics context on which to draw.
Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawPosition() [17/20]

void eVision.ECode.DrawPosition ( System.Drawing.Graphics graphicsContext,
float zoomX )

Draws the Position of the Code.

Parameters
graphicsContextHandle of the graphics context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawPosition() [18/20]

void eVision.ECode.DrawPosition ( System.Drawing.Graphics graphicsContext,
float zoomX,
float zoomY )

Draws the Position of the Code.

Parameters
graphicsContextHandle of the graphics context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawPosition() [19/20]

void eVision.ECode.DrawPosition ( System.Drawing.Graphics graphicsContext,
float zoomX,
float zoomY,
float panX )

Draws the Position of the Code.

Parameters
graphicsContextHandle of the graphics context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawPosition() [20/20]

void eVision.ECode.DrawPosition ( System.Drawing.Graphics graphicsContext,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the Position of the Code.

Parameters
graphicsContextHandle of the graphics context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.
Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawPositionWithCurrentPen() [1/5]

void eVision.ECode.DrawPositionWithCurrentPen ( IntPtr hDC)

Draws the Position of the Code using the pen currently set in the graphical context.

Parameters
hDCHandle of the device context on which to draw.
Deprecated

Use the overload of ECode.DrawPosition taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawPositionWithCurrentPen() [2/5]

void eVision.ECode.DrawPositionWithCurrentPen ( IntPtr hDC,
float zoomX )

Draws the Position of the Code using the pen currently set in the graphical context.

Parameters
hDCHandle of the device context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
Deprecated

Use the overload of ECode.DrawPosition taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawPositionWithCurrentPen() [3/5]

void eVision.ECode.DrawPositionWithCurrentPen ( IntPtr hDC,
float zoomX,
float zoomY )

Draws the Position of the Code using the pen currently set in the graphical context.

Parameters
hDCHandle of the device context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
Deprecated

Use the overload of ECode.DrawPosition taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawPositionWithCurrentPen() [4/5]

void eVision.ECode.DrawPositionWithCurrentPen ( IntPtr hDC,
float zoomX,
float zoomY,
float panX )

Draws the Position of the Code using the pen currently set in the graphical context.

Parameters
hDCHandle of the device context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
Deprecated

Use the overload of ECode.DrawPosition taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawPositionWithCurrentPen() [5/5]

void eVision.ECode.DrawPositionWithCurrentPen ( IntPtr hDC,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the Position of the Code using the pen currently set in the graphical context.

Parameters
hDCHandle of the device context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.
Deprecated

Use the overload of ECode.DrawPosition taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ ToFrame() [1/2]

eVision.EFrame eVision.ECode.ToFrame ( bool useAngle,
eVision.EFrameScaling frameScaling )

Creates an EFrame from the ECode.

Parameters
useAngleWhether to use the angle of the ECode in the frame.
frameScalingHow to handle the scale of the frame. EFrameScaling.EFrameScaling_UseScaling is not supported.

◆ ToFrame() [2/2]

eVision.EFrame eVision.ECode.ToFrame ( bool useAngle,
eVision.EFrameScaling frameScaling,
eVision.EFrame frame )

Creates an EFrame from the ECode.

Parameters
useAngleWhether to use the angle of the ECode in the frame.
frameScalingHow to handle the scale of the frame. EFrameScaling.EFrameScaling_UseScaling is not supported.
frameParent frame. Used when the ECode was read using a frame.

◆ ToRegion()

eVision.ERegion eVision.ECode.ToRegion ( )

Creates an ERegion from the ECode.

Property Documentation

◆ Angle

float eVision.ECode.Angle
get

Returns the angle of the ECode as if it was an ERectangle.

◆ BarCode

eVision.EasyBarCode2.EBarCode eVision.ECode.BarCode
get

Returns the EBarCode contained in the ECode. Throws an exception if there is none.

◆ Center

eVision.EPoint eVision.ECode.Center
get

Returns the center of the ECode.

◆ CodeType

eVision.ECodeType eVision.ECode.CodeType
get

Code type.

◆ DecodedString

string eVision.ECode.DecodedString
get

Decoded code string.

◆ IsGS1

bool eVision.ECode.IsGS1
get

Returns whether the decoded string uses the GS1 standard.

◆ MatrixCode

eVision.EasyMatrixCode2.EMatrixCode eVision.ECode.MatrixCode
get

Returns the EMatrixCode contained in the ECode. Throws an exception if there is none.

◆ Position

eVision.EQuadrangle eVision.ECode.Position
get

Code position.

If the ECode represents an EQRCode object, the EQuadrangle's corners are in the following order: top right, top left, bottom left, bottom right. If the ECode represents an EBarCode or EMatrixCode object, the EQuadrangle's corners are in the following order: top left, top right, bottom right, bottom left.

◆ QRCode

eVision.EQRCode eVision.ECode.QRCode
get

Returns the EQRCode contained in the ECode. Throws an exception if there is none.

◆ SizeX

float eVision.ECode.SizeX
get

Returns the size of the ECode on its X axis. This corresponds to the mean between the sizes of the top and bottom sides of the ECode.

◆ SizeY

float eVision.ECode.SizeY
get

Returns the size of the ECode on its Y axis. This corresponds to the mean between the sizes of the left and right sides of the ECode.