|
@@ -12,7 +12,7 @@ namespace PixiEditor.DrawingApi.Core.Surface.ImageData
|
|
|
/// <para />
|
|
|
/// <para>An image always has a non-zero dimensions. If there is a request to create a new image, either directly or via a surface, and either of the requested dimensions are zero, then <see langword="null" /> will be returned.</para>
|
|
|
/// </remarks>
|
|
|
- public class Image : NativeObject
|
|
|
+ public class Image : NativeObject, ICloneable
|
|
|
{
|
|
|
public override object Native => DrawingBackendApi.Current.ImageImplementation.GetNativeImage(ObjectPointer);
|
|
|
|
|
@@ -55,5 +55,10 @@ namespace PixiEditor.DrawingApi.Core.Surface.ImageData
|
|
|
{
|
|
|
return DrawingBackendApi.Current.ImageImplementation.Encode(this, format, quality);
|
|
|
}
|
|
|
+
|
|
|
+ public object Clone()
|
|
|
+ {
|
|
|
+ return DrawingBackendApi.Current.ImageImplementation.Clone(this);
|
|
|
+ }
|
|
|
}
|
|
|
}
|