Browse Source
Merge pull request #6739 from Takoooooo/drawingimage-ctor
Add constructor to DrawingImage which accepts Drawing
pull/6744/head
Tako
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
8 additions and
0 deletions
-
src/Avalonia.Visuals/Media/DrawingImage.cs
|
|
|
@ -11,6 +11,14 @@ namespace Avalonia.Media |
|
|
|
/// </summary>
|
|
|
|
public class DrawingImage : AvaloniaObject, IImage, IAffectsRender |
|
|
|
{ |
|
|
|
public DrawingImage() |
|
|
|
{ |
|
|
|
} |
|
|
|
|
|
|
|
public DrawingImage(Drawing drawing) |
|
|
|
{ |
|
|
|
Drawing = drawing; |
|
|
|
} |
|
|
|
/// <summary>
|
|
|
|
/// Defines the <see cref="Drawing"/> property.
|
|
|
|
/// </summary>
|
|
|
|
|