Search Results for

    Show / Hide Table of Contents

    Class PageOrientation

    Specifies the orientation of a page.

    Inheritance
    System.Object
    PageOrientation
    Namespace: IronBarCode
    Assembly: IronBarCode.dll
    Syntax
    public sealed class PageOrientation : Enum

    PageOrientation reports the orientation of the page or image a barcode was read from, exposed on BarcodeResult.PageOrientation after a scan. Portrait means the image height is greater than its width, and Landscape means the width is greater than the height. Reading the value helps a workflow correlate a detected barcode with the original document layout. The image orientation correction how-to covers handling rotated scans.

    PageOrientation orientation = result.PageOrientation;

    Fields

    Landscape

    The image's width is greater than its height.

    Declaration
    public const PageOrientation Landscape
    Field Value
    Type Description
    PageOrientation

    Portrait

    The image's height is greater than its width.

    Declaration
    public const PageOrientation Portrait
    Field Value
    Type Description
    PageOrientation

    value__

    Declaration
    public int value__
    Field Value
    Type Description
    System.Int32
    ☀
    ☾
    Downloads
    • Download with Nuget
    • Start for Free
    In This Article
    Back to top
    Install with Nuget