ReadableBitmapDataExtensionsToSKBitmap(IReadableBitmapData) Method
Converts the specified
source to an
SKBitmap.
Namespace: KGySoft.Drawing.SkiaSharpAssembly: KGySoft.Drawing.SkiaSharp (in KGySoft.Drawing.SkiaSharp.dll) Version: 10.0.0-rc.1
public static SKBitmap ToSKBitmap(
this IReadableBitmapData source
)
<ExtensionAttribute>
Public Shared Function ToSKBitmap (
source As IReadableBitmapData
) As SKBitmap
public:
[ExtensionAttribute]
static SKBitmap^ ToSKBitmap(
IReadableBitmapData^ source
)
[<ExtensionAttribute>]
static member ToSKBitmap :
source : IReadableBitmapData -> SKBitmap
- source IReadableBitmapData
- The source IReadableBitmapData instance to convert.
SKBitmapAn
SKBitmap instance that has the same content as the specified
source.In Visual Basic and C#, you can call this method as an instance method on any object of type
IReadableBitmapData. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
This method adjusts the degree of parallelization automatically, blocks the caller, and does not support cancellation or reporting progress.
Use the
ToSKBitmapAsync for asynchronous call and to adjust parallelization, set up cancellation and for reporting progress.