ImageBox Class Reference

A widget that displays an image. More...

Inheritance diagram for ImageBox:
Widget

List of all members.

Public Member Functions

 ImageBox ()
 Constructor.

Protected Member Functions

internal override void Render ()
 Renders a scene graph.

Properties

override float Width [get, set]
 Obtains and sets the width.
override float Height [get, set]
 Obtains and sets the height.
ImageAsset Image [get, set]
 Obtains and sets the image.
NinePatchMargin NinePatchMargin [get, set]
 Obtains and sets the 9-patch information of the image.
ImageScaleType ImageScaleType [get, set]
 Obtains and sets the scale of the image.
ImageRect CropArea [get, set]
 Obtains and sets the clip area of the image.
BlendMode BlendMode [get, set]
 Obtains and sets the blend mode.

Detailed Description

A widget that displays an image.


Property Documentation

ImageRect CropArea [get, set]

Obtains and sets the clip area of the image.

No clipping is performed if everything is 0. The clipped image is scaled when set at the same time as ImageScaleType.

Obtains and sets the 9-patch information of the image.

Enabled only when ImageScaleType is NinePatch.