C# Class LayoutFarm.RenderUtils

Provides some drawing functionallity
Mostrar archivo Open project: prepare/HTML-Renderer

Public Methods

Method Description
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)

Private Methods

Method Description
GetErrorImage ( ) : Image

Get singleton instance of error image.

GetLoadImage ( ) : Image

Get singleton instance of load image.

Method Details

DrawImageErrorIcon() public static method

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
return void

DrawImageLoadingIcon() public static method

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
return void

GetRoundRect() public static method

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
return PixelFarm.Drawing.GraphicsPath

IsColorVisible() public static method

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
return bool