Extensions.ToBitmap Method

Definition

Overloads

ToBitmap(SKBitmap)

Converts a SkiaSharp bitmap into a System.Drawing bitmap.

ToBitmap(SKImage)

Converts a SkiaSharp image into a System.Drawing bitmap.

ToBitmap(SKPixmap)

Converts a SkiaSharp pixmap into a System.Drawing bitmap.

ToBitmap(SKPicture, SKSizeI)

Converts a SkiaSharp picture into a System.Drawing bitmap.

ToBitmap(SKBitmap)

Converts a SkiaSharp bitmap into a System.Drawing bitmap.

public static System.Drawing.Bitmap ToBitmap (this SkiaSharp.SKBitmap skiaBitmap);

Parameters

skiaBitmap
SKBitmap

The SkiaSharp bitmap.

Returns

Returns a copy of the bitmap data as a System.Drawing bitmap.

Applies to

ToBitmap(SKImage)

Converts a SkiaSharp image into a System.Drawing bitmap.

public static System.Drawing.Bitmap ToBitmap (this SkiaSharp.SKImage skiaImage);

Parameters

skiaImage
SKImage

The SkiaSharp image.

Returns

Returns a copy of the image data as a System.Drawing bitmap.

Applies to

ToBitmap(SKPixmap)

Converts a SkiaSharp pixmap into a System.Drawing bitmap.

public static System.Drawing.Bitmap ToBitmap (this SkiaSharp.SKPixmap pixmap);

Parameters

pixmap
SKPixmap

The SkiaSharp pixmap.

Returns

Returns a copy of the pixel data as a System.Drawing bitmap.

Applies to

ToBitmap(SKPicture, SKSizeI)

Converts a SkiaSharp picture into a System.Drawing bitmap.

public static System.Drawing.Bitmap ToBitmap (this SkiaSharp.SKPicture picture, SkiaSharp.SKSizeI dimensions);

Parameters

picture
SKPicture

The SkiaSharp picture.

dimensions
SKSizeI

The dimensions of the picture.

Returns

Returns a copy of the picture as a System.Drawing bitmap.

Applies to