C# Class LayoutFarm.HtmlBoxes.CssBoxImage

CSS box for image element.
Inheritance: CssBox
Show file Open project: prepare/HTML-Renderer Class Usage Examples

Public Methods

Method Description
Clear ( ) : void
CssBoxImage ( Css boxSpec, RootGraphic rootgfx, ImageBinder binder ) : System

Init.

MeasureRunsSize ( LayoutVisitor lay ) : void

Assigns words its width and height

Paint ( PaintVisitor p, RectangleF rect ) : void

Protected Methods

Method Description
PaintImp ( PaintVisitor p ) : void

Paints the fragment

Private Methods

Method Description
MeasureImageSize ( CssImageRun imgRun, LayoutVisitor lay ) : void

Measure image box size by the width\height set on the box and the actual rendered image size.
If no image exists for the box error icon will be set.

Method Details

Clear() public method

public Clear ( ) : void
return void

CssBoxImage() public method

Init.
public CssBoxImage ( Css boxSpec, RootGraphic rootgfx, ImageBinder binder ) : System
boxSpec Css
rootgfx RootGraphic
binder ImageBinder
return System

MeasureRunsSize() public method

Assigns words its width and height
public MeasureRunsSize ( LayoutVisitor lay ) : void
lay LayoutVisitor
return void

Paint() public method

public Paint ( PaintVisitor p, RectangleF rect ) : void
p PaintVisitor
rect PixelFarm.Drawing.RectangleF
return void

PaintImp() protected method

Paints the fragment
protected PaintImp ( PaintVisitor p ) : void
p PaintVisitor
return void