Search Results for

    Show / Hide Table of Contents

    Class QrResultPosition

    Represents the position of the detected QR code in the image.

    Inheritance
    System.Object
    QrResultPosition
    Namespace: IronQr
    Assembly: IronQr.dll
    Syntax
    public sealed class QrResultPosition : ValueType

    The location of a detected QR code within an image is given by QrResultPosition through its corner Points. When a read needs to do more than decode, for example draw a box around each code in a scanner UI or crop the region for review, the position tells the application where the code sits in the source pixels.

    The Points property is a read-only PointF[] holding the corner coordinates of the detected symbol, and the constructor takes the same array. Map those points onto the displayed image to highlight or overlay the code. For the decoded text and type, read the QrResult itself, whose own Points property covers the common case; QrResultPosition is the focused value when position is passed or stored on its own.

    PointF[] corners = position.Points;

    The advanced read example works with detection detail, and the Blazor scanner example overlays results on a live view.

    Constructors

    QrResultPosition(PointF[])

    Initializes a new instance of the QrResultPosition structure.

    Declaration
    public QrResultPosition(PointF[] points)
    Parameters
    Type Name Description
    IronSoftware.Drawing.PointF[] points

    An array of points that define the position.

    Fields

    Points

    An array of points that define the position.

    Declaration
    public readonly PointF[] Points
    Field Value
    Type Description
    IronSoftware.Drawing.PointF[]
    ☀
    ☾
    Downloads
    • Download with Nuget
    • Start for Free
    In This Article
    Back to top
    Install with NuGet