C# Class winmaped2.PaintFunctions

Afficher le fichier Open project: Bananattack/verge3 Class Usage Examples

Méthodes publiques

Méthode Description
ColorToHsb ( Color c ) : HSBColor
HsbToColor ( float h, float s, float b ) : Color

Returns a Color structure specified by HSB values.

PaintFrame ( Graphics g, int x1, int y1, int w, int h ) : void
PaintLine ( Graphics gfx, int r, int g, int b, int x1, int y1, int x2, int y2 ) : void

Private Methods

Méthode Description
HsbIntermediateValuesToRgbComponent ( float m1, float m2, float h ) : int

Returns an RGB component for the intermediate values of the HSB to RGB convertion algorithm.

Method Details

ColorToHsb() public static méthode

public static ColorToHsb ( Color c ) : HSBColor
c Color
Résultat HSBColor

HsbToColor() public static méthode

Returns a Color structure specified by HSB values.
public static HsbToColor ( float h, float s, float b ) : Color
h float The hue of the color.
s float The saturation of the color.
b float The brightness of the color.
Résultat Color

PaintFrame() public static méthode

public static PaintFrame ( Graphics g, int x1, int y1, int w, int h ) : void
g System.Drawing.Graphics
x1 int
y1 int
w int
h int
Résultat void

PaintLine() public static méthode

public static PaintLine ( Graphics gfx, int r, int g, int b, int x1, int y1, int x2, int y2 ) : void
gfx System.Drawing.Graphics
r int
g int
b int
x1 int
y1 int
x2 int
y2 int
Résultat void