C# 클래스 winmaped2.PaintFunctions

파일 보기 프로젝트 열기: Bananattack/verge3 1 사용 예제들

공개 메소드들

메소드 설명
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