Search Results for

    Show / Hide Table of Contents

    Class PixColor

    Inheritance
    System.Object
    PixColor
    Implements
    System.IEquatable<PixColor>
    Namespace: DynamicTesseract
    Assembly: IronOcr.dll
    Syntax
    public sealed class PixColor : ValueType, IEquatable<PixColor>

    Constructors

    PixColor(Byte, Byte, Byte, Byte)

    Declaration
    public PixColor(byte red, byte green, byte blue, byte alpha = 255)
    Parameters
    Type Name Description
    System.Byte red
    System.Byte green
    System.Byte blue
    System.Byte alpha

    Properties

    Alpha

    Declaration
    public byte Alpha { get; }
    Property Value
    Type Description
    System.Byte

    Blue

    Declaration
    public byte Blue { get; }
    Property Value
    Type Description
    System.Byte

    Green

    Declaration
    public byte Green { get; }
    Property Value
    Type Description
    System.Byte

    Red

    Declaration
    public byte Red { get; }
    Property Value
    Type Description
    System.Byte

    Methods

    Equals(PixColor)

    Declaration
    public bool Equals(PixColor other)
    Parameters
    Type Name Description
    PixColor other
    Returns
    Type Description
    System.Boolean

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean

    FromRgb(UInt32)

    Declaration
    public static PixColor FromRgb(uint value)
    Parameters
    Type Name Description
    System.UInt32 value
    Returns
    Type Description
    PixColor

    FromRgba(UInt32)

    Declaration
    public static PixColor FromRgba(uint value)
    Parameters
    Type Name Description
    System.UInt32 value
    Returns
    Type Description
    PixColor

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32

    ToRGBA()

    Declaration
    public uint ToRGBA()
    Returns
    Type Description
    System.UInt32

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    Operators

    Equality(PixColor, PixColor)

    Declaration
    public static bool operator ==(PixColor lhs, PixColor rhs)
    Parameters
    Type Name Description
    PixColor lhs
    PixColor rhs
    Returns
    Type Description
    System.Boolean

    Explicit(PixColor to Color)

    Declaration
    public static explicit operator Color(PixColor color)
    Parameters
    Type Name Description
    PixColor color
    Returns
    Type Description
    IronSoftware.Drawing.Color

    Explicit(Color to PixColor)

    Declaration
    public static explicit operator PixColor(Color color)
    Parameters
    Type Name Description
    IronSoftware.Drawing.Color color
    Returns
    Type Description
    PixColor

    Inequality(PixColor, PixColor)

    Declaration
    public static bool operator !=(PixColor lhs, PixColor rhs)
    Parameters
    Type Name Description
    PixColor lhs
    PixColor rhs
    Returns
    Type Description
    System.Boolean

    Implements

    System.IEquatable<>
    ☀
    ☾
    Downloads
    • Download with Nuget
    • Start for Free
    In This Article
    Back to top
    Install with Nuget
    Want to deploy IronOCR to a live project for FREE?
    What’s included?
    30 days of fully-functional product
    Test and share in a live environment
    No watermarks in production
    Get your free 30-day Trial Key instantly.
    No credit card or account creation required
    Your Trial License Key has been emailed to you.
    Download IronOCR free to apply
    your Trial Licenses Key
    Install with NuGet View Licenses
    Licenses from $499. Have a question? Get in touch.