Table of Contents

Class ImageDrawable

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

Implements image drawing.

public class ImageDrawable : BaseDrawable, IBaseObject, IBaseDrawable
Inheritance
ImageDrawable
Implements
Derived

Properties

CenterHorz

Gets whether or not to center this object horizontally. Default is true.

CenterHorzOrVert

Gets whether or not center this object horizontally or vertically.

CenterVert

Gets whether or not to center this object vertically. Default is true.

DisabledImage

Gets or sets image to draw.

DisabledImageSet

Gets or sets image to draw.

Image

Gets or sets image to draw.

ImageSet

Gets or sets image to draw.

IsImageSpecified

Gets a value indicating whether the object has an associated image.

Stretch

Gets whether or not to stretch this object. Default is true.

SvgColor

Gets or sets the color used to render the SVG image.

SvgImage

Gets or sets the SVG image associated with this instance.

SvgSize

Gets or sets the size of the SVG image in pixels.

Methods

DefaultDrawImage(AbstractControl, Graphics)

Performs default drawing of the image.

GetImage(AbstractControl, bool)

Gets image to draw.

GetPreferredSize(AbstractControl)

Gets preferred size in device-independent units.

OnDraw(AbstractControl, Graphics)

Performs custom drawing operations for the specified control.

ResetCachedImages()

Resets any cached images associated with the current instance.

SetSvgSize(int)

Sets svg size. Implemented for the convenience.