![]() |
Paradox Game Engine
v1.0.0 beta06
|
The FI16RGB565 structure describes a color consisting of relative intensities of red, green, blue and alpha value. Each single color component consumes 5 bits and so, takes values in the range from 0 to 31. More...
Public Member Functions | |
FI16RGB565 (Color color) | |
Initializes a new instance based on the specified System.Drawing.Color. More... | |
int | CompareTo (object obj) |
Compares this instance with a specified Object. More... | |
int | CompareTo (FI16RGB565 other) |
Compares this instance with a specified FI16RGB565 object. More... | |
override bool | Equals (object obj) |
Tests whether the specified object is a FI16RGB565 structure and is equivalent to this FI16RGB565 structure. More... | |
bool | Equals (FI16RGB565 other) |
Tests whether the specified FI16RGB565 structure is equivalent to this FI16RGB565 structure. More... | |
override int | GetHashCode () |
Returns a hash code for this FI16RGB565 structure. More... | |
override string | ToString () |
Converts the numeric value of the FI16RGB565 object to its equivalent string representation. More... | |
FI16RGB565 (Color color) | |
Initializes a new instance based on the specified System.Drawing.Color. More... | |
int | CompareTo (object obj) |
Compares this instance with a specified Object. More... | |
int | CompareTo (FI16RGB565 other) |
Compares this instance with a specified FI16RGB565 object. More... | |
override bool | Equals (object obj) |
Tests whether the specified object is a FI16RGB565 structure and is equivalent to this FI16RGB565 structure. More... | |
bool | Equals (FI16RGB565 other) |
Tests whether the specified FI16RGB565 structure is equivalent to this FI16RGB565 structure. More... | |
override int | GetHashCode () |
Returns a hash code for this FI16RGB565 structure. More... | |
override string | ToString () |
Converts the numeric value of the FI16RGB565 object to its equivalent string representation. More... | |
Static Public Member Functions | |
static bool | operator== (FI16RGB565 left, FI16RGB565 right) |
Tests whether two specified FI16RGB565 structures are equivalent. More... | |
static bool | operator!= (FI16RGB565 left, FI16RGB565 right) |
Tests whether two specified FI16RGB565 structures are different. More... | |
static implicit | operator FI16RGB565 (Color value) |
Converts the value of a System.Drawing.Color structure to a FI16RGB565 structure. More... | |
static implicit | operator Color (FI16RGB565 value) |
Converts the value of a FI16RGB565 structure to a System.Drawing.Color structure. More... | |
static bool | operator== (FI16RGB565 left, FI16RGB565 right) |
Tests whether two specified FI16RGB565 structures are equivalent. More... | |
static bool | operator!= (FI16RGB565 left, FI16RGB565 right) |
Tests whether two specified FI16RGB565 structures are different. More... | |
static implicit | operator FI16RGB565 (Color value) |
Converts the value of a System.Drawing.Color structure to a FI16RGB565 structure. More... | |
static implicit | operator Color (FI16RGB565 value) |
Converts the value of a FI16RGB565 structure to a System.Drawing.Color structure. More... | |
Properties | |
Color | Color [get, set] |
Gets or sets the System.Drawing.Color of the structure. More... | |
byte | Red [get, set] |
Gets or sets the red color component. More... | |
byte | Green [get, set] |
Gets or sets the green color component. More... | |
byte | Blue [get, set] |
Gets or sets the blue color component. More... | |
The FI16RGB565 structure describes a color consisting of relative intensities of red, green, blue and alpha value. Each single color component consumes 5 bits and so, takes values in the range from 0 to 31.
For easy integration of the underlying structure into the .NET framework, the FI16RGB565 structure implements implicit conversion operators to convert the represented color to and from the System.Drawing.Color type. This makes the System.Drawing.Color type a real replacement for the FI16RGB565 structure and my be used in all situations which require an FI16RGB565 type.
The following code example demonstrates the various conversions between the FI16RGB565 structure and the System.Drawing.Color structure.
Definition at line 74 of file FI16RGB565.cs.
FreeImageAPI.FI16RGB565.FI16RGB565 | ( | Color | color | ) |
Initializes a new instance based on the specified System.Drawing.Color.
color | System.Drawing.Color to initialize with. |
Definition at line 85 of file FI16RGB565.cs.
Referenced by FreeImageAPI.FI16RGB565.operator FI16RGB565().
FreeImageAPI.FI16RGB565.FI16RGB565 | ( | Color | color | ) |
Initializes a new instance based on the specified System.Drawing.Color.
color | System.Drawing.Color to initialize with. |
Definition at line 85 of file FI16RGB565.cs.
int FreeImageAPI.FI16RGB565.CompareTo | ( | object | obj | ) |
Compares this instance with a specified Object.
obj | An object to compare with this instance. |
ArgumentException | obj is not a FI16RGB565. |
Definition at line 211 of file FI16RGB565.cs.
Referenced by FreeImageAPI.FI16RGB565.CompareTo().
int FreeImageAPI.FI16RGB565.CompareTo | ( | object | obj | ) |
Compares this instance with a specified Object.
obj | An object to compare with this instance. |
ArgumentException | obj is not a FI16RGB565. |
Definition at line 211 of file FI16RGB565.cs.
References FreeImageAPI.FI16RGB565.CompareTo().
int FreeImageAPI.FI16RGB565.CompareTo | ( | FI16RGB565 | other | ) |
Compares this instance with a specified FI16RGB565 object.
other | A FI16RGB565 to compare. |
Definition at line 230 of file FI16RGB565.cs.
References FreeImageAPI.FI16RGB565.CompareTo().
int FreeImageAPI.FI16RGB565.CompareTo | ( | FI16RGB565 | other | ) |
Compares this instance with a specified FI16RGB565 object.
other | A FI16RGB565 to compare. |
Definition at line 230 of file FI16RGB565.cs.
References FreeImageAPI.FI16RGB565.Color, and FreeImageAPI.FI16RGB565.CompareTo().
override bool FreeImageAPI.FI16RGB565.Equals | ( | object | obj | ) |
Tests whether the specified object is a FI16RGB565 structure and is equivalent to this FI16RGB565 structure.
obj | The object to test. |
Definition at line 242 of file FI16RGB565.cs.
override bool FreeImageAPI.FI16RGB565.Equals | ( | object | obj | ) |
Tests whether the specified object is a FI16RGB565 structure and is equivalent to this FI16RGB565 structure.
obj | The object to test. |
Definition at line 242 of file FI16RGB565.cs.
bool FreeImageAPI.FI16RGB565.Equals | ( | FI16RGB565 | other | ) |
Tests whether the specified FI16RGB565 structure is equivalent to this FI16RGB565 structure.
other | A FI16RGB565 structure to compare to this instance. |
Definition at line 251 of file FI16RGB565.cs.
bool FreeImageAPI.FI16RGB565.Equals | ( | FI16RGB565 | other | ) |
Tests whether the specified FI16RGB565 structure is equivalent to this FI16RGB565 structure.
other | A FI16RGB565 structure to compare to this instance. |
Definition at line 253 of file FI16RGB565.cs.
override int FreeImageAPI.FI16RGB565.GetHashCode | ( | ) |
Returns a hash code for this FI16RGB565 structure.
Definition at line 260 of file FI16RGB565.cs.
override int FreeImageAPI.FI16RGB565.GetHashCode | ( | ) |
Returns a hash code for this FI16RGB565 structure.
Definition at line 262 of file FI16RGB565.cs.
|
static |
Converts the value of a FI16RGB565 structure to a System.Drawing.Color structure.
value | A FI16RGB565 structure. |
Definition at line 134 of file FI16RGB565.cs.
|
static |
Converts the value of a FI16RGB565 structure to a System.Drawing.Color structure.
value | A FI16RGB565 structure. |
Definition at line 134 of file FI16RGB565.cs.
|
static |
Converts the value of a System.Drawing.Color structure to a FI16RGB565 structure.
value | A System.Drawing.Color structure. |
Definition at line 124 of file FI16RGB565.cs.
References FreeImageAPI.FI16RGB565.FI16RGB565().
|
static |
Converts the value of a System.Drawing.Color structure to a FI16RGB565 structure.
value | A System.Drawing.Color structure. |
Definition at line 124 of file FI16RGB565.cs.
References FreeImageAPI.FI16RGB565.FI16RGB565().
|
static |
Tests whether two specified FI16RGB565 structures are different.
left | The FI16RGB565 that is to the left of the inequality operator. |
right | The FI16RGB565 that is to the right of the inequality operator. |
Definition at line 114 of file FI16RGB565.cs.
|
static |
Tests whether two specified FI16RGB565 structures are different.
left | The FI16RGB565 that is to the left of the inequality operator. |
right | The FI16RGB565 that is to the right of the inequality operator. |
Definition at line 114 of file FI16RGB565.cs.
|
static |
Tests whether two specified FI16RGB565 structures are equivalent.
left | The FI16RGB565 that is to the left of the equality operator. |
right | The FI16RGB565 that is to the right of the equality operator. |
Definition at line 101 of file FI16RGB565.cs.
|
static |
Tests whether two specified FI16RGB565 structures are equivalent.
left | The FI16RGB565 that is to the left of the equality operator. |
right | The FI16RGB565 that is to the right of the equality operator. |
Definition at line 101 of file FI16RGB565.cs.
override string FreeImageAPI.FI16RGB565.ToString | ( | ) |
Converts the numeric value of the FI16RGB565 object to its equivalent string representation.
Definition at line 270 of file FI16RGB565.cs.
References FreeImageAPI.FI16RGB565.Color.
override string FreeImageAPI.FI16RGB565.ToString | ( | ) |
Converts the numeric value of the FI16RGB565 object to its equivalent string representation.
Definition at line 272 of file FI16RGB565.cs.
References FreeImageAPI.FI16RGB565.Color.
|
getset |
Gets or sets the blue color component.
Definition at line 194 of file FI16RGB565.cs.
|
getset |
Gets or sets the System.Drawing.Color of the structure.
Definition at line 143 of file FI16RGB565.cs.
Referenced by FreeImageAPI.FI16RGB565.CompareTo(), and FreeImageAPI.FI16RGB565.ToString().
|
getset |
Gets or sets the green color component.
Definition at line 179 of file FI16RGB565.cs.
|
getset |
Gets or sets the red color component.
Definition at line 164 of file FI16RGB565.cs.