Метод | Описание | |
---|---|---|
Alpha ( Image source, int percentage, |
Adjusts the alpha component of the given image.
|
|
Brightness ( Image source, int threshold, |
Adjusts the brightness component of the given image.
|
|
Contrast ( Image source, int threshold, |
Adjusts the contrast component of the given image.
|
|
Gamma ( Image source, float value ) : |
Adjust the gamma (intensity of the light) component of the given image.
|
|
ToLinear ( Image source ) : |
Converts an image from an sRGB color-space to the equivalent linear color-space.
|
|
ToSRGB ( Image source ) : |
Converts an image from a linear color-space to the equivalent sRGB color-space.
|
Метод | Описание | |
---|---|---|
GetLinearBytes ( ) : byte[] |
Gets an array of bytes representing each possible value of color component converted from sRGB to the linear color space.
|
|
GetSRGBBytes ( ) : byte[] |
Gets an array of bytes representing each possible value of color component converted from linear to the sRGB color space.
|
|
LinearToSRGB ( float signal ) : float |
Gets the correct sRGB value from an linear signal.
|
|
SRGBToLinear ( float signal ) : float |
Gets the correct linear value from an sRGB signal.
|
public static Alpha ( Image source, int percentage, |
||
source | Image |
/// The |
percentage | int | /// The percentage value between 0 and 100 for adjusting the opacity. /// |
rectangle | The rectangle to define the bounds of the area to adjust the opacity. /// If null then the effect is applied to the entire image. | |
Результат |
public static Brightness ( Image source, int threshold, |
||
source | Image |
/// The |
threshold | int | /// The threshold value between -100 and 100 for adjusting the brightness. /// |
rectangle | The rectangle to define the bounds of the area to adjust the brightness. /// If null then the effect is applied to the entire image. | |
Результат |
public static Contrast ( Image source, int threshold, |
||
source | Image |
/// The |
threshold | int | /// The threshold value between -100 and 100 for adjusting the contrast. /// |
rectangle | The rectangle to define the bounds of the area to adjust the contrast. /// If null then the effect is applied to the entire image. | |
Результат |
public static Gamma ( Image source, float value ) : |
||
source | Image |
/// The |
value | float | /// The value to adjust the gamma by (typically between .2 and 5). /// |
Результат |
public static ToLinear ( Image source ) : |
||
source | Image |
/// The |
Результат |
public static ToSRGB ( Image source ) : |
||
source | Image |
/// The |
Результат |