Skip to content

Image class

An image display control with scaling and alignment options.

Guide: C# Markup reference: Image

public sealed class Image : FrameworkElement
name description
Image() The default constructor.
AlignmentX { get; set; } Gets or sets the horizontal alignment of the image.
AlignmentY { get; set; } Gets or sets the vertical alignment of the image.
ImageScaleQuality { get; set; } Gets or sets the image scaling quality.
OrientationMode { get; set; } Gets or sets whether the source’s orientation (e.g. JPEG EXIF) is applied; the default FromImage shows the image upright and Ignore the raw decoded pixels.
Source { get; set; } Gets or sets the image source.
StretchMode { get; set; } Gets or sets how the image is stretched to fill available space.
VectorCacheMode { get; set; } Gets or sets how a vector source is rendered; the default is Cached.
Viewbox { get; set; } Gets or sets the viewbox region of the source image.
ViewboxUnits { get; set; } Gets or sets the units for the viewbox coordinates.
TryPeekColor(…) Tries to read the source pixel color at the given position (local DIPs).
static readonly AlignmentXProperty
static readonly AlignmentYProperty
static readonly ImageScaleQualityProperty
static readonly OrientationModeProperty
static readonly SourceProperty
static readonly StretchModeProperty
static readonly VectorCacheModeProperty
static readonly ViewboxProperty
static readonly ViewboxUnitsProperty