C# Class winmaped2.PaintFunctions

Mostra file Open project: Bananattack/verge3 Class Usage Examples

Public Methods

Method 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

Method 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 method

public static ColorToHsb ( Color c ) : HSBColor
c Color
return HSBColor

HsbToColor() public static method

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.
return Color

PaintFrame() public static method

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
return void

PaintLine() public static method

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
return void