Search Results for

    Show / Hide Table of Contents

    Class BarcodeResultPosition

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

    Inheritance
    System.Object
    BarcodeResultPosition
    Namespace: IronBarCode
    Assembly: IronBarCode.dll
    Syntax
    public sealed class BarcodeResultPosition : ValueType

    Locating a detected barcode inside its source image runs through BarcodeResultPosition. The struct describes where a single code sits, holding the corner coordinates that bound the symbol so a developer can crop, highlight, or overlay a marker on the scanned page. It is the lightweight geometry record a developer reaches for when a read needs to do more than return text, such as drawing a box around each code that was found.

    BarcodeResultPosition is a value type, so it copies by value and carries no behavior of its own beyond the data it holds. A developer obtains one from a detected code's position rather than constructing it for a normal read, then reads its coordinates to place an annotation. Because it is a struct, passing it around is cheap and it never needs disposal.

    The single property is Points, a read-only PointF[] of the corner coordinates that outline the barcode in the image. Those points are enough to compute a bounding box, draw an outline, or map the symbol back to a region of the original page for cropping. Read Points to drive whatever visual or spatial step the job needs.

    The read barcodes from images how-to reads codes whose position this records, and the read multiple barcodes how-to locates each of several codes.

    Constructors

    BarcodeResultPosition(PointF[])

    Initializes a new instance of the BarcodeResultPosition structure.

    Declaration
    public BarcodeResultPosition(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