C# 클래스 LayoutFarm.RenderUtils

Provides some drawing functionallity
파일 보기 프로젝트 열기: prepare/HTML-Renderer

공개 메소드들

메소드 설명
DrawImageErrorIcon ( Canvas g, RectangleF r ) : void

Draw image failed to load icon.

DrawImageLoadingIcon ( Canvas g, RectangleF r ) : void

Get cached pen instance for the given color.

Draw image loading icon.

GetRoundRect ( RectangleF rect, float nwRadius, float neRadius, float seRadius, float swRadius ) : GraphicsPath

Creates a rounded rectangle using the specified corner radius

IsColorVisible ( Color color ) : bool

Check if the given color is visible if painted (has alpha and color values)

비공개 메소드들

메소드 설명
GetErrorImage ( ) : Image

Get singleton instance of error image.

GetLoadImage ( ) : Image

Get singleton instance of load image.

메소드 상세

DrawImageErrorIcon() 공개 정적인 메소드

Draw image failed to load icon.
public static DrawImageErrorIcon ( Canvas g, RectangleF r ) : void
g PixelFarm.Drawing.Canvas the device to draw into
r PixelFarm.Drawing.RectangleF the rectangle to draw icon in
리턴 void

DrawImageLoadingIcon() 공개 정적인 메소드

Get cached pen instance for the given color. Draw image loading icon.
public static DrawImageLoadingIcon ( Canvas g, RectangleF r ) : void
g PixelFarm.Drawing.Canvas the device to draw into
r PixelFarm.Drawing.RectangleF the rectangle to draw icon in
리턴 void

GetRoundRect() 공개 정적인 메소드

Creates a rounded rectangle using the specified corner radius
public static GetRoundRect ( RectangleF rect, float nwRadius, float neRadius, float seRadius, float swRadius ) : GraphicsPath
rect PixelFarm.Drawing.RectangleF Rectangle to round
nwRadius float Radius of the north east corner
neRadius float Radius of the north west corner
seRadius float Radius of the south east corner
swRadius float Radius of the south west corner
리턴 PixelFarm.Drawing.GraphicsPath

IsColorVisible() 공개 정적인 메소드

Check if the given color is visible if painted (has alpha and color values)
public static IsColorVisible ( Color color ) : bool
color PixelFarm.Drawing.Color the color to check
리턴 bool