Skip to main content

Class Picture

Represents an image display control in the user interface.

Assembly: MicroLayout.dll
View Source
public class Picture : ThemedControl, IThemedControl, IControl

Inheritance: System.Object -> Meadow.Foundation.Graphics.MicroLayout.Control -> Meadow.Foundation.Graphics.MicroLayout.ThemedControl

Implements:
Meadow.Foundation.Graphics.MicroLayout.IThemedControl, Meadow.Foundation.Graphics.MicroLayout.IControl

Properties

Image

Gets or sets the image to be displayed on the image display control.

View Source
public Image Image { get; set; }

VerticalAlignment

Gets or sets the vertical alignment of the image within the image display control.

View Source
public VerticalAlignment VerticalAlignment { get; set; }

HorizontalAlignment

Gets or sets the horizontal alignment of the image within the image display control.

View Source
public HorizontalAlignment HorizontalAlignment { get; set; }

BackColor

Gets or sets the background color of the image display control.

View Source
public Color BackColor { get; set; }

Methods

ApplyTheme(DisplayTheme)

Applies the specified display theme to the image display control.

View Source
public override void ApplyTheme(DisplayTheme theme)
Parameters
TypeNameDescription
Meadow.Foundation.Graphics.MicroLayout.DisplayThemethemeThe display theme to apply.

OnDraw(MicroGraphics)

Draws the image display control on the specified Meadow.Foundation.Graphics.MicroGraphics surface.

View Source
protected override void OnDraw(MicroGraphics graphics)
Parameters
TypeNameDescription
Meadow.Foundation.Graphics.MicroGraphicsgraphicsThe Meadow.Foundation.Graphics.MicroGraphics surface to draw the image display control on.

Implements