C# Class PixelMapSharp.Pixel

Datei anzeigen Open project: ruarai/PixelMap Class Usage Examples

Public Properties

Property Type Description
A byte
B byte
G byte
R byte

Public Methods

Method Description
Pixel ( Color c ) : System

Creates a pixel from a System.Drawing color.

Pixel ( byte r, byte g, byte b ) : System

Creates a pixel from RGB values.

Pixel ( byte a, byte r, byte g, byte b ) : System

Creates a pixel from ARGB values.

Pixel ( double hue, double saturation, double lightness ) : System

Creates a pixel from HSL values.

Pixel ( double hue, double saturation, double lightness, byte alpha ) : System

Creates a pixel from HSL-A values.

Pixel ( int r, int g, int b ) : System

Creates a pixel from integer RGB values.

Pixel ( int a, int r, int g, int b ) : System

Creates a pixel from ARGB values.

operator ( ) : Pixel

Multiplicative mix of two pixels.

Private Methods

Method Description
hueToRGB ( double p, double q, double t ) : double
window ( double c ) : byte

Method Details

Pixel() public method

Creates a pixel from a System.Drawing color.
public Pixel ( Color c ) : System
c Color
return System

Pixel() public method

Creates a pixel from RGB values.
public Pixel ( byte r, byte g, byte b ) : System
r byte
g byte
b byte
return System

Pixel() public method

Creates a pixel from ARGB values.
public Pixel ( byte a, byte r, byte g, byte b ) : System
a byte
r byte
g byte
b byte
return System

Pixel() public method

Creates a pixel from HSL values.
public Pixel ( double hue, double saturation, double lightness ) : System
hue double
saturation double
lightness double
return System

Pixel() public method

Creates a pixel from HSL-A values.
public Pixel ( double hue, double saturation, double lightness, byte alpha ) : System
hue double
saturation double
lightness double
alpha byte
return System

Pixel() public method

Creates a pixel from integer RGB values.
public Pixel ( int r, int g, int b ) : System
r int
g int
b int
return System

Pixel() public method

Creates a pixel from ARGB values.
public Pixel ( int a, int r, int g, int b ) : System
a int
r int
g int
b int
return System

operator() public static method

Multiplicative mix of two pixels.
public static operator ( ) : Pixel
return Pixel

Property Details

A public_oe property

The alpha value of the Pixel from 0 to 255.
public byte A
return byte

B public_oe property

The blue value of the Pixel from 0 to 255.
public byte B
return byte

G public_oe property

The green value of the Pixel from 0 to 255.
public byte G
return byte

R public_oe property

The red value of the Pixel from 0 to 255.
public byte R
return byte