C# Class PixelMapSharp.Pixel

Afficher le fichier Open project: ruarai/PixelMap Class Usage Examples

Méthodes publiques

Свойство Type Description
A byte
B byte
G byte
R byte

Méthodes publiques

Méthode 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

Méthode Description
hueToRGB ( double p, double q, double t ) : double
window ( double c ) : byte

Method Details

Pixel() public méthode

Creates a pixel from a System.Drawing color.
public Pixel ( Color c ) : System
c Color
Résultat System

Pixel() public méthode

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

Pixel() public méthode

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
Résultat System

Pixel() public méthode

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

Pixel() public méthode

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
Résultat System

Pixel() public méthode

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

Pixel() public méthode

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
Résultat System

operator() public static méthode

Multiplicative mix of two pixels.
public static operator ( ) : Pixel
Résultat Pixel

Property Details

A public_oe property

The alpha value of the Pixel from 0 to 255.
public byte A
Résultat byte

B public_oe property

The blue value of the Pixel from 0 to 255.
public byte B
Résultat byte

G public_oe property

The green value of the Pixel from 0 to 255.
public byte G
Résultat byte

R public_oe property

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