Table of Contents

Class ImageStyle

Namespace
Myra.Graphics2D.UI.Styles
Assembly
Myra.dll

Style class that defines the visual appearance of image widgets.

public class ImageStyle : WidgetStyle
Inheritance
ImageStyle
Derived
Inherited Members

Constructors

ImageStyle()

Initializes a new instance of the ImageStyle class.

public ImageStyle()

ImageStyle(ImageStyle)

Initializes a new instance of the ImageStyle class by copying properties from another style.

public ImageStyle(ImageStyle style)

Parameters

style ImageStyle

The source image style to copy from.

Properties

DisabledImage

Gets or sets the image displayed when the widget is disabled.

public IImage DisabledImage { get; set; }

Property Value

IImage

FocusedImage

Gets or sets the image displayed when the widget has focus.

public IImage FocusedImage { get; set; }

Property Value

IImage

Image

Gets or sets the image displayed by the image widget.

public IImage Image { get; set; }

Property Value

IImage

OverImage

Gets or sets the image displayed when the mouse is over the widget, or null to use the default image.

public IImage OverImage { get; set; }

Property Value

IImage

PressedImage

Gets or sets the image displayed when the widget is pressed.

public IImage PressedImage { get; set; }

Property Value

IImage

Methods

Clone()

Creates a deep copy of this image style.

public override WidgetStyle Clone()

Returns

WidgetStyle

A new ImageStyle instance with the same properties.