C# 클래스 Andwho.Windows.Helper.DrawHelper

关于 GDI+ 绘图的辅助类
파일 보기 프로젝트 열기: JimmyFung/DesktopHelper

공개 메소드들

메소드 설명
CreateRoundPath ( Rectangle rect, int cornerRadius ) : GraphicsPath

构建圆角路径

CreateRoundRect ( RectangleF r, float r1, float r2, float r3, float r4 ) : GraphicsPath

构建圆角路径

DrawImage ( Graphics g, Image image, int x1, int y1, int width1, int height1, int x2, int y2, int width2, int height2 ) : void

RendererBackground ( Graphics g, Rectangle rect, Image backgroundImage, bool method ) : void

渲染背景图片,使背景图片不失真

RendererBackground ( Graphics g, Rectangle rect, int cut, Image backgroundImage ) : void

渲染背景图片,使背景图片不失真

메소드 상세

CreateRoundPath() 공개 정적인 메소드

构建圆角路径
public static CreateRoundPath ( Rectangle rect, int cornerRadius ) : GraphicsPath
rect System.Drawing.Rectangle
cornerRadius int
리턴 System.Drawing.Drawing2D.GraphicsPath

CreateRoundRect() 공개 정적인 메소드

构建圆角路径
public static CreateRoundRect ( RectangleF r, float r1, float r2, float r3, float r4 ) : GraphicsPath
r System.Drawing.RectangleF
r1 float
r2 float
r3 float
r4 float
리턴 System.Drawing.Drawing2D.GraphicsPath

DrawImage() 공개 정적인 메소드

public static DrawImage ( Graphics g, Image image, int x1, int y1, int width1, int height1, int x2, int y2, int width2, int height2 ) : void
g System.Drawing.Graphics
image Image
x1 int
y1 int
width1 int
height1 int
x2 int
y2 int
width2 int
height2 int
리턴 void

RendererBackground() 공개 정적인 메소드

渲染背景图片,使背景图片不失真
public static RendererBackground ( Graphics g, Rectangle rect, Image backgroundImage, bool method ) : void
g System.Drawing.Graphics
rect System.Drawing.Rectangle
backgroundImage Image
method bool
리턴 void

RendererBackground() 공개 정적인 메소드

渲染背景图片,使背景图片不失真
public static RendererBackground ( Graphics g, Rectangle rect, int cut, Image backgroundImage ) : void
g System.Drawing.Graphics
rect System.Drawing.Rectangle
cut int
backgroundImage Image
리턴 void