메소드 | 설명 | |
---|---|---|
BgraToUInt32 ( byte b, byte g, byte r, byte a ) : |
Packs color and alpha values into a 32-bit integer.
|
|
BgraToUInt32 ( int b, int g, int r, int a ) : |
Packs color and alpha values into a 32-bit integer.
|
|
Blend ( |
Constructs a new ColorBgra instance from the values in the given Color instance. Converts this ColorBgra instance to a Color instance. Smoothly blends between two colors.
|
|
Blend ( |
Smoothly blends the given colors together, assuming equal weighting for each one.
|
|
BlendColors4W16IP ( |
Blends four colors together based on the given weight values. The weights should be 16-bit fixed point numbers that add up to 65536 ("1.0"). 4W16IP means "4 colors, weights, 16-bit integer precision" |
|
BlendColorsWAIP ( |
Blends the colors based on the given weight values. "WAIP" stands for "weights, arbitrary integer precision" |
|
BlendColorsWFP ( |
Blends the colors based on the given weight values. "WAIP" stands for "weights, floating-point" |
|
ClampToByte ( double x ) : byte | ||
ClampToByte ( float x ) : byte | ||
ClampToByte ( int x ) : byte | ||
Equals ( object obj ) : bool |
Compares two ColorBgra instance to determine if they are equal.
|
|
FromBgr ( byte b, byte g, byte r ) : |
Creates a new ColorBgra instance with the given color values, and 255 for alpha.
|
|
FromBgra ( byte b, byte g, byte r, byte a ) : |
Creates a new ColorBgra instance with the given color and alpha values.
|
|
FromBgraClamped ( float b, float g, float r, float a ) : |
Creates a new ColorBgra instance with the given color and alpha values.
|
|
FromBgraClamped ( int b, int g, int r, int a ) : |
Creates a new ColorBgra instance with the given color and alpha values.
|
|
FromUInt32 ( |
Constructs a new ColorBgra instance with the given 32-bit value.
|
|
GetAverageColorChannelValue ( ) : byte |
Returns the average of the B, G, and R values. Alpha is ignored.
|
|
GetHashCode ( ) : int |
Returns a hash code for this color value.
|
|
GetIntensity ( ) : double |
Gets the luminance intensity of the pixel based on the values of the red, green, and blue components. Alpha is ignored.
|
|
GetIntensityByte ( ) : byte |
Gets the luminance intensity of the pixel based on the values of the red, green, and blue components. Alpha is ignored.
|
|
GetMaxColorChannelValue ( ) : byte |
Returns the maximum value out of the B, G, and R values. Alpha is ignored.
|
|
Lerp ( |
Linearly interpolates between two color values. This method does a simple lerp on each color value and on the alpha channel. It does not properly take into account the alpha channel's effect on color blending. |
|
Lerp ( |
Linearly interpolates between two color values. This method does a simple lerp on each color value and on the alpha channel. It does not properly take into account the alpha channel's effect on color blending. |
|
Lerp ( double from, double to, double frac ) : double | ||
Lerp ( float from, float to, float frac ) : float | ||
NewAlpha ( byte newA ) : |
Gets the equivalent GDI+ PixelFormat. Returns a new ColorBgra with the same color values but with a new alpha component value. This property always returns PixelFormat.Format32bppArgb. |
|
ParseHexString ( string hexString ) : |
||
ToHexString ( ) : string | ||
ToString ( ) : string | ||
operator ( ) : bool |
Compares two ColorBgra instance to determine if they are not equal.
|
|
this ( int channel ) : byte |
Gets or sets the byte value of the specified color channel.
|
메소드 | 설명 | |
---|---|---|
FromRgb ( byte r, byte g, byte b ) : |
||
FromRgba ( byte r, byte g, byte b, byte a ) : |
public static BgraToUInt32 ( byte b, byte g, byte r, byte a ) : |
||
b | byte | |
g | byte | |
r | byte | |
a | byte | |
리턴 |
public static BgraToUInt32 ( int b, int g, int r, int a ) : |
||
b | int | |
g | int | |
r | int | |
a | int | |
리턴 |
public static Blend ( |
||
ca | ||
cb | ||
cbAlpha | byte | |
리턴 |
public static Blend ( |
||
colors | ||
count | int | |
리턴 |
public static BlendColors4W16IP ( |
||
c1 | ||
w1 | uint | |
c2 | ||
w2 | uint | |
c3 | ||
w3 | uint | |
c4 | ||
w4 | uint | |
리턴 |
public static BlendColorsWAIP ( |
||
c | The array of color values. | |
w | uint | The array of weight values. |
리턴 |
public static BlendColorsWFP ( |
||
c | The array of color values. | |
w | double | The array of weight values. |
리턴 |
public static FromBgr ( byte b, byte g, byte r ) : |
||
b | byte | |
g | byte | |
r | byte | |
리턴 |
public static FromBgra ( byte b, byte g, byte r, byte a ) : |
||
b | byte | |
g | byte | |
r | byte | |
a | byte | |
리턴 |
public static FromBgraClamped ( float b, float g, float r, float a ) : |
||
b | float | |
g | float | |
r | float | |
a | float | |
리턴 |
public static FromBgraClamped ( int b, int g, int r, int a ) : |
||
b | int | |
g | int | |
r | int | |
a | int | |
리턴 |
public static FromUInt32 ( |
||
bgra | ||
리턴 |
public static Lerp ( |
||
from | The color value that represents 0 on the lerp number line. | |
to | The color value that represents 1 on the lerp number line. | |
frac | double | A value in the range [0, 1]. |
리턴 |
public static Lerp ( |
||
from | The color value that represents 0 on the lerp number line. | |
to | The color value that represents 1 on the lerp number line. | |
frac | float | A value in the range [0, 1]. |
리턴 |
public static Lerp ( double from, double to, double frac ) : double | ||
from | double | |
to | double | |
frac | double | |
리턴 | double |
public static Lerp ( float from, float to, float frac ) : float | ||
from | float | |
to | float | |
frac | float | |
리턴 | float |
public static ParseHexString ( string hexString ) : |
||
hexString | string | |
리턴 |