RenderUtils
TheArtOfDev.HtmlRenderer.Core.Utils
Provides some drawing functionality
Methoden
ClipGraphicsByOverflow(RGraphics, CssBox) : bool
Clip the region the graphics will draw on by the overflow style of the containing block. Recursively travel up the tree to find containing block that has overflow style set to hidden. if not block found there will be no clipping and null will be returned.
- g
- the graphics to clip
- box
- the box that is rendered to get containing blocks
Rückgabe: true - was clipped, false - not clipped
DrawImageErrorIcon(RGraphics, HtmlContainerInt, RRect)
Draw image failed to load icon.
- g
- the device to draw into
- htmlContainer
- r
- the rectangle to draw icon in
DrawImageLoadingIcon(RGraphics, HtmlContainerInt, RRect)
Draw image loading icon.
- g
- the device to draw into
- htmlContainer
- r
- the rectangle to draw icon in
GetRoundRect(RGraphics, RRect, double, double, double, double) : RGraphicsPath
Creates a rounded rectangle using the specified corner radius NW-----NE | | | | SW-----SE
- g
- the device to draw into
- rect
- Rectangle to round
- nwRadius
- Radius of the north east corner
- neRadius
- Radius of the north west corner
- seRadius
- Radius of the south east corner
- swRadius
- Radius of the south west corner
Rückgabe: GraphicsPath with the lines of the rounded rectangle ready to be painted
IsColorVisible(RColor) : bool
Check if the given color is visible if painted (has alpha and color values)
- color
- the color to check
Rückgabe: true - visible, false - not visible