Skip to main content

Class Picture

Represents an image display control in the user interface.

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

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

Implements:
Meadow.Foundation.Graphics.MicroLayout.IThemedControl

Properties

Image

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

View Source
Declaration
public Image? Image { get; set; }

VerticalAlignment

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

View Source
Declaration
public VerticalAlignment VerticalAlignment { get; set; }

HorizontalAlignment

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

View Source
Declaration
public HorizontalAlignment HorizontalAlignment { get; set; }

BackColor

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

View Source
Declaration
public Color BackColor { get; set; }

Methods

ApplyTheme(DisplayTheme)

Applies the specified display theme to the image display control.

View Source
Declaration
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
Declaration
protected override void OnDraw(MicroGraphics graphics)
Parameters
TypeNameDescription
Meadow.Foundation.Graphics.MicroGraphics surface to draw the image display control on.

Implements