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

Represents the geometry of a QR code. More...

Inheritance diagram for eVision.EQRCodeGeometry:
Collaboration diagram for eVision.EQRCodeGeometry:

Public Member Functions

 EQRCodeGeometry ()
 Constructs an EQRCodeGeometry.EQRCodeGeometry object.
 EQRCodeGeometry (eVision.EQRCodeGeometry other)
 Constructs an EQRCodeGeometry.EQRCodeGeometry object.
 EQRCodeGeometry (eVision.EQuadrangle position, eVision.EPoint[] finderPatternCenters)
 Constructs an EQRCodeGeometry.EQRCodeGeometry object.
eVision.ERegion ToRegion ()
 Creates an ERegion from the EQRCodeGeometry.
void Draw (eVision.EDrawAdapter drawAdapter, float zoomX, float zoomY, float panX, float panY)
 Draws the QR code geometry.
void Draw (IntPtr hdc, float zoomX, float zoomY, float panX, float panY)
 Draws the QR code geometry.
void DrawWithCurrentPen (IntPtr hDC, float zoomX, float zoomY, float panX, float panY)
 Draws the QR code geometry using the pen currently set in the graphical context.
void Draw (System.Drawing.Graphics hdc, float zoomX, float zoomY, float panX, float panY)
 Draws the QR code geometry.

Properties

eVision.EQuadrangle Position [get]
 Position of the QR code returned as an EQuadrangle object.
eVision.EPoint[] FinderPatternCenters [get]
 Finder patterns centers.

Detailed Description

Represents the geometry of a QR code.

This geometry is composed of the position of the QR code and the finder pattern centers.

License(s): EasyQRCode

Constructor & Destructor Documentation

◆ EQRCodeGeometry() [1/3]

eVision.EQRCodeGeometry.EQRCodeGeometry ( )

Constructs an EQRCodeGeometry.EQRCodeGeometry object.

In case of a Micro QR code (not yet supported), there must be only one finder pattern center. In case of another QR code, there must be three finder pattern centers, entered in the following order: top right, top left, bottom left.

The corners of the EQuadrangle must be entered in the following order : top right, top left, bottom left, bottom right.

◆ EQRCodeGeometry() [2/3]

eVision.EQRCodeGeometry.EQRCodeGeometry ( eVision.EQRCodeGeometry other)

Constructs an EQRCodeGeometry.EQRCodeGeometry object.

Parameters
otherAnother EQRCodeGeometry.EQRCodeGeometry.

In case of a Micro QR code (not yet supported), there must be only one finder pattern center. In case of another QR code, there must be three finder pattern centers, entered in the following order: top right, top left, bottom left.

The corners of the EQuadrangle must be entered in the following order : top right, top left, bottom left, bottom right.

◆ EQRCodeGeometry() [3/3]

eVision.EQRCodeGeometry.EQRCodeGeometry ( eVision.EQuadrangle position,
eVision.EPoint[] finderPatternCenters )

Constructs an EQRCodeGeometry.EQRCodeGeometry object.

Parameters
positionThe position of the QR code represented as an EQuadrangle object.
finderPatternCentersThe vector of Finder Pattern centers.

In case of a Micro QR code (not yet supported), there must be only one finder pattern center. In case of another QR code, there must be three finder pattern centers, entered in the following order: top right, top left, bottom left.

The corners of the EQuadrangle must be entered in the following order : top right, top left, bottom left, bottom right.

Member Function Documentation

◆ Draw() [1/3]

void eVision.EQRCodeGeometry.Draw ( eVision.EDrawAdapter drawAdapter,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the QR code geometry.

Parameters
drawAdapterDraw adapter.
zoomXHorizontal zooming factor.
zoomYVertical zooming factor.
panXHorizontal panning value expressed in pixels.
panYVertical panning value expressed in pixels.

The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.

◆ Draw() [2/3]

void eVision.EQRCodeGeometry.Draw ( IntPtr hdc,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the QR code geometry.

Parameters
hdcGraphics context.
zoomXHorizontal zooming factor.
zoomYVertical zooming factor.
panXHorizontal panning value expressed in pixels.
panYVertical panning value expressed in pixels.

The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.

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.

◆ Draw() [3/3]

void eVision.EQRCodeGeometry.Draw ( System.Drawing.Graphics hdc,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the QR code geometry.

Parameters
hdcGraphics context.
zoomXHorizontal zooming factor.
zoomYVertical zooming factor.
panXHorizontal panning value expressed in pixels.
panYVertical panning value expressed in pixels.

The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.

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.

◆ DrawWithCurrentPen()

void eVision.EQRCodeGeometry.DrawWithCurrentPen ( IntPtr hDC,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the QR code geometry using the pen currently set in the graphical context.

Parameters
hDCHandle to the device context of the destination window.
zoomXHorizontal zooming factor.
zoomYVertical zooming factor.
panXHorizontal panning value expressed in pixels.
panYVertical panning value expressed in pixels.

The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.

Deprecated

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

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

◆ ToRegion()

eVision.ERegion eVision.EQRCodeGeometry.ToRegion ( )

Creates an ERegion from the EQRCodeGeometry.

Property Documentation

◆ FinderPatternCenters

eVision.EPoint [] eVision.EQRCodeGeometry.FinderPatternCenters
get

Finder patterns centers.

In case of a Micro QR code, there is only one finder pattern center. In case of another QR code, there are three finder pattern centers, returned in the following order: top right, top left, bottom left.

◆ Position

eVision.EQuadrangle eVision.EQRCodeGeometry.Position
get

Position of the QR code returned as an EQuadrangle object.

The EQuadrangle's corners are in the following order: top right, top left, bottom left, bottom right.