ReadableBitmapDataExtensionsToSKBitmap(IReadableBitmapData, SKColorType, IQuantizer, IDitherer) Method
Namespace: KGySoft.Drawing.SkiaSharpAssembly: KGySoft.Drawing.SkiaSharp (in KGySoft.Drawing.SkiaSharp.dll) Version: 9.1.0
public static SKBitmap ToSKBitmap(
this IReadableBitmapData source,
SKColorType colorType,
IQuantizer? quantizer,
IDitherer? ditherer = null
)
<ExtensionAttribute>
Public Shared Function ToSKBitmap (
source As IReadableBitmapData,
colorType As SKColorType,
quantizer As IQuantizer,
Optional ditherer As IDitherer = Nothing
) As SKBitmap
public:
[ExtensionAttribute]
static SKBitmap^ ToSKBitmap(
IReadableBitmapData^ source,
SKColorType colorType,
IQuantizer^ quantizer,
IDitherer^ ditherer = nullptr
)
[<ExtensionAttribute>]
static member ToSKBitmap :
source : IReadableBitmapData *
colorType : SKColorType *
quantizer : IQuantizer *
?ditherer : IDitherer
(* Defaults:
let _ditherer = defaultArg ditherer null
*)
-> SKBitmap
- source IReadableBitmapData
- The source IReadableBitmapData instance to convert.
- colorType SKColorType
- Determines the ColorType property of the result SKBitmap.
Can be Unknown to auto select a color type that matches the source pixel format.
- quantizer IQuantizer
- An optional IQuantizer instance to determine the colors of the result.
- ditherer IDitherer (Optional)
- The ditherer to be used. Might be ignored if quantizer is not specified
and colorType represents a higher bits-per-pixel per color channel format. This parameter is optional.
Default value: .
SKBitmapAn
SKBitmap converted from 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).