SKPicture Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Recorded drawing operations made to a SKCanvas to be played back at a later time.
public class SKPicture : SkiaSharp.SKObject
- Inheritance
Remarks
This base class handles serialization and a few other miscellany.
Properties
| Name | Description |
|---|---|
| ApproximateBytesUsed |
Gets the approximate number of bytes used by this picture. |
| ApproximateOperationCount |
Gets the approximate number of drawing operations recorded in this picture. |
| CullRect |
Gets the culling rectangle for this picture. |
| Handle |
Gets or sets the handle to the underlying native object. (Inherited from SKObject) |
| IgnorePublicDispose |
Gets or sets a value indicating whether the call the public Dispose() should be no-op. (Inherited from SKNativeObject) |
| IsDisposed |
Gets or sets a value indicating whether the object has already been disposed. (Inherited from SKNativeObject) |
| OwnsHandle |
Gets or sets a value indicating whether this object owns its handle and should destroy the native object when it is disposed. (Inherited from SKNativeObject) |
| UniqueId |
Gets the non-zero value unique among all pictures. |
Methods
| Name | Description |
|---|---|
| Deserialize(IntPtr, Int32) |
Deserializes a picture from a native memory pointer. |
| Deserialize(ReadOnlySpan<Byte>) |
Deserializes a picture from a byte span. |
| Deserialize(SKData) |
Deserializes a picture from serialized data. |
| Deserialize(SKStream) |
Deserializes a picture from a stream. |
| Deserialize(Stream) |
Deserializes a picture from a .NET stream. |
| Dispose() |
Releases all resources used by this SKNativeObject. (Inherited from SKNativeObject) |
| Dispose(Boolean) |
Releases the unmanaged resources used by the SKPicture and optionally releases the managed resources. |
| DisposeInternal() |
Triggers a dispose, ignoring the value of IgnorePublicDispose. (Inherited from SKNativeObject) |
| DisposeManaged() |
Implemented by derived SKObject types to destroy any managed objects. (Inherited from SKObject) |
| DisposeNative() |
Implemented by derived SKObject types to destroy any native objects. (Inherited from SKObject) |
| DisposeUnownedManaged() |
Implemented by derived SKObject types to dispose managed objects that are not owned by this instance. (Inherited from SKObject) |
| GetApproximateOperationCount(Boolean) |
Gets the approximate number of drawing operations recorded in this picture. |
| Playback(SKCanvas) |
Replays the recorded drawing commands onto the specified canvas. |
| Serialize() |
Serializes the picture into an SKData object. |
| Serialize(SKWStream) |
Serializes the picture to the specified stream. |
| Serialize(Stream) |
Serializes the picture to the specified .NET stream. |
| ToShader() |
Creates a shader from this picture using the cull rect as the tile boundary. |
| ToShader(SKShaderTileMode, SKShaderTileMode, SKFilterMode, SKMatrix, SKRect) |
Creates a shader from this picture with specified tile modes, filter mode, transformation, and boundary. |
| ToShader(SKShaderTileMode, SKShaderTileMode, SKFilterMode, SKRect) |
Creates a shader from this picture with specified tile modes, filter mode, and boundary. |
| ToShader(SKShaderTileMode, SKShaderTileMode, SKFilterMode) |
Creates a shader from this picture with specified tile and filter modes. |
| ToShader(SKShaderTileMode, SKShaderTileMode, SKMatrix, SKRect) |
Creates a shader from this picture with specified tile modes, transformation, and boundary. |
| ToShader(SKShaderTileMode, SKShaderTileMode, SKRect) |
Creates a shader from this picture with specified tile modes and boundary. |
| ToShader(SKShaderTileMode, SKShaderTileMode) |
Creates a shader from this picture with specified tile modes. |