C# Class System.Drawing.PixelData

Show file Open project: garuma/apachai Class Usage Examples

Public Methods

Method Description
FromBgr ( byte b, byte g, byte r ) : PixelData
FromBgra ( byte b, byte g, byte r, byte a ) : PixelData
FromBgraClamped ( int b, int g, int r, int a ) : PixelData
FromUInt32 ( uint value ) : PixelData
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.

this ( int channel ) : byte

Method Details

FromBgr() public static method

public static FromBgr ( byte b, byte g, byte r ) : PixelData
b byte
g byte
r byte
return PixelData

FromBgra() public static method

public static FromBgra ( byte b, byte g, byte r, byte a ) : PixelData
b byte
g byte
r byte
a byte
return PixelData

FromBgraClamped() public static method

public static FromBgraClamped ( int b, int g, int r, int a ) : PixelData
b int
g int
r int
a int
return PixelData

FromUInt32() public static method

public static FromUInt32 ( uint value ) : PixelData
value uint
return PixelData

GetIntensity() public method

Gets the luminance intensity of the pixel based on the values of the red, green, and blue components. Alpha is ignored.
public GetIntensity ( ) : double
return double

GetIntensityByte() public method

Gets the luminance intensity of the pixel based on the values of the red, green, and blue components. Alpha is ignored.
public GetIntensityByte ( ) : byte
return byte

this() public method

public this ( int channel ) : byte
channel int
return byte