C# Класс winmaped2.PaintFunctions

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
HsbIntermediateValuesToRgbComponent ( float m1, float m2, float h ) : int

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

Описание методов

ColorToHsb() публичный статический Метод

public static ColorToHsb ( Color c ) : HSBColor
c Color
Результат HSBColor

HsbToColor() публичный статический Метод

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.
Результат Color

PaintFrame() публичный статический Метод

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
Результат void

PaintLine() публичный статический Метод

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
Результат void