C# Class LayoutFarm.RenderUtils

Provides some drawing functionallity
Afficher le fichier Open project: prepare/HTML-Renderer

Méthodes publiques

Méthode 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

Méthode Description
GetErrorImage ( ) : Image

Get singleton instance of error image.

GetLoadImage ( ) : Image

Get singleton instance of load image.

Method Details

DrawImageErrorIcon() public static méthode

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
Résultat void

DrawImageLoadingIcon() public static méthode

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
Résultat void

GetRoundRect() public static méthode

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
Résultat PixelFarm.Drawing.GraphicsPath

IsColorVisible() public static méthode

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
Résultat bool