DrawingImage Class
Definition
An Avalonia.Media.IImage that uses a Avalonia.Media.DrawingImage.Drawing for content.
public class DrawingImage
Constructors
| Name | Description |
|---|---|
| DrawingImage (2 overloads) | No summary available. |
DrawingImage overloads
DrawingImage Constructor
public DrawingImage()
DrawingImage Constructor
public DrawingImage(Avalonia.Media.Drawing drawing)
Parameters
drawing Avalonia.Media.Drawing
Methods
| Name | Description |
|---|---|
| Bind (8 overloads) | Binds a Avalonia.AvaloniaProperty to an Avalonia.Data.BindingBase. Inherited from AvaloniaObject. |
| CheckAccess | Returns a value indicating whether the current thread is the UI thread. Inherited from AvaloniaObject. |
| ClearValue (4 overloads) | Clears a Avalonia.AvaloniaProperty's local value. Inherited from AvaloniaObject. |
| CoerceValue | Coerces the specified Avalonia.AvaloniaProperty. Inherited from AvaloniaObject. |
| Equals | Compares two objects using reference equality. Inherited from AvaloniaObject. |
| GetBaseValue | Inherited from AvaloniaObject. |
| GetHashCode | Gets the hash code for the object. Inherited from AvaloniaObject. |
| GetValue (3 overloads) | Gets a Avalonia.AvaloniaProperty value. Inherited from AvaloniaObject. |
| IsAnimating | Checks whether a Avalonia.AvaloniaProperty is animating. Inherited from AvaloniaObject. |
| IsSet | Checks whether a Avalonia.AvaloniaProperty is set on this object. Inherited from AvaloniaObject. |
| SetCurrentValue (2 overloads) | Sets the value of a dependency property without changing its value source. Inherited from AvaloniaObject. |
| SetValue (3 overloads) | Sets a Avalonia.AvaloniaProperty value. Inherited from AvaloniaObject. |
| VerifyAccess | Checks that the current thread is the UI thread and throws if not. Inherited from AvaloniaObject. |
Properties
| Name | Description |
|---|---|
| Drawing | Gets or sets the drawing content. |
| Size | Gets the size of the image, in device independent pixels. |
| Viewbox | Gets or sets a rectangular region of Avalonia.Media.DrawingImage.Drawing, in device independent pixels, to display when rendering this image. |
| Dispatcher | Returns the Avalonia.AvaloniaObject.Dispatcher that this Avalonia.AvaloniaObject is associated with. Inherited from AvaloniaObject. |
| Item | Inherited from AvaloniaObject. |
Drawing Property
Gets or sets the drawing content.
public Avalonia.Media.Drawing Drawing { get; set; }
Size Property
Gets the size of the image, in device independent pixels.
public Avalonia.Size Size { get; set; }
Viewbox Property
Gets or sets a rectangular region of Avalonia.Media.DrawingImage.Drawing, in device independent pixels, to display when rendering this image.
public Nullable<Avalonia.Rect> Viewbox { get; set; }
Remarks
This value can be used to display only part of Avalonia.Media.DrawingImage.Drawing, or to surround it with empty space. If null, Avalonia.Media.DrawingImage.Drawing will provide its own viewbox.
See also
Fields
| Name | Description |
|---|---|
| DrawingProperty | Defines the Avalonia.Media.DrawingImage.Drawing property. |
| ViewboxProperty | Defines the Avalonia.Media.DrawingImage.Viewbox property. |
DrawingProperty Field
Defines the Avalonia.Media.DrawingImage.Drawing property.
public Avalonia.StyledProperty<TValue><Avalonia.Media.Drawing> DrawingProperty
ViewboxProperty Field
Defines the Avalonia.Media.DrawingImage.Viewbox property.
public Avalonia.StyledProperty<TValue><Nullable<Avalonia.Rect>> ViewboxProperty
Events
| Name | Description |
|---|---|
| Invalidated | No summary available. |
| PropertyChanged | Raised when a Avalonia.AvaloniaProperty value changes on this object. Inherited from AvaloniaObject. |
Invalidated Event
public event EventHandler Invalidated