Class PixColor
Inheritance
System.Object
PixColor
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
Property Value
Type |
Description |
System.Byte |
|
Methods
Equals(PixColor)
Declaration
public bool Equals(PixColor other)
Parameters
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
FromRgba(UInt32)
Declaration
public static PixColor FromRgba(uint value)
Parameters
Type |
Name |
Description |
System.UInt32 |
value |
|
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
ToRGBA()
Declaration
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
Returns
Type |
Description |
System.Boolean |
|
Explicit(PixColor to Color)
Declaration
public static explicit operator Color(PixColor color)
Parameters
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
Inequality(PixColor, PixColor)
Declaration
public static bool operator !=(PixColor lhs, PixColor rhs)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
System.IEquatable<>