C# Класс LayoutFarm.RenderUtils

Provides some drawing functionallity
Показать файл Открыть проект

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

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