Table of Contents

Class Image

Namespace
nanoFramework.Presentation.Controls
Assembly
nanoFramework.Graphics.dll

Summary description for Image.

public class Image : UIElement
Inheritance
Image
Inherited Members
Extension Methods

Constructors

Image()

Initializes a new instance of the Image class.

public Image()

Image(Bitmap)

Initializes a new instance of the Image class with a specified Bitmap.

public Image(Bitmap bmp)

Parameters

bmp Bitmap

The Bitmap to display in the Image element.

Properties

Bitmap

Gets or sets the Bitmap displayed in the Image element.

public Bitmap Bitmap { get; set; }

Property Value

Bitmap

Methods

MeasureOverride(int, int, out int, out int)

Measures the size of the Image element based on its Bitmap.

protected override void MeasureOverride(int availableWidth, int availableHeight, out int desiredWidth, out int desiredHeight)

Parameters

availableWidth int

The available width for the Image element to occupy.

availableHeight int

The available height for the Image element to occupy.

desiredWidth int

The desired width of the Image element based on its Bitmap.

desiredHeight int

The desired height of the Image element based on its Bitmap.

OnRender(DrawingContext)

Renders the Bitmap of the Image element on the screen.

public override void OnRender(DrawingContext dc)

Parameters

dc DrawingContext

The DrawingContext to use for rendering.