CssBoxImage

TheArtOfDev.HtmlRenderer.Core.Dom

CSS box for image element.

継承元: CssBox

コンストラクター

CssBoxImage(CssBox, HtmlTag)

Init.

parent
the parent box of this box
tag
the html tag data of this box

プロパティ

Image : RImage

Get the image of this image box.

メソッド

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

MeasureWordsSize(RGraphics)

Assigns words its width and height

g
the device to use
OnLoadImageComplete(RImage, RRect, bool)

On image load process is complete with image or without update the image box.

image
the image loaded or null if failed
rectangle
the source rectangle to draw in the image (empty - draw everything)
async
is the callback was called async to load image call
PaintImp(RGraphics)

Paints the fragment

g
the device to draw to
SetErrorBorder()

Set error image border on the image box.

フィールド

_imageLoadHandler : ImageLoadHandler

handler used for image loading by source

_imageLoadingComplete : bool

is image load is finished, used to know if no image is found

_imageWord : CssRectImage

the image word of this image box