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
BitmapThe 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
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
intThe available width for the Image element to occupy.
availableHeight
intThe available height for the Image element to occupy.
desiredWidth
intThe desired width of the Image element based on its Bitmap.
desiredHeight
intThe 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
DrawingContextThe DrawingContext to use for rendering.