Class ImageDrawing
Draws an image within a region defined by a Rect.
public sealed class ImageDrawing : Drawing, INotifyPropertyChanged
- Inheritance
-
ImageDrawing
- Implements
- Inherited Members
- Extension Methods
Constructors
ImageDrawing()
public ImageDrawing()
Fields
ImageSourceProperty
Defines the ImageSource property.
public static readonly StyledProperty<IImage?> ImageSourceProperty
Field Value
RectProperty
Defines the Rect property.
public static readonly StyledProperty<Rect> RectProperty
Field Value
Properties
ImageSource
Gets or sets the source of the image.
public IImage? ImageSource { get; set; }
Property Value
Rect
Gets or sets region in which the image is drawn.
public Rect Rect { get; set; }
Property Value
Methods
GetBounds()
Gets the drawing's bounding rectangle.
public override Rect GetBounds()