AndroidExtensions.ToBitmap Method

Definition

Overloads

ToBitmap(SKBitmap)

Converts a SkiaSharp bitmap into a Xamarin.Android bitmap.

ToBitmap(SKImage)

Converts a SkiaSharp image into a Xamarin.Android bitmap.

ToBitmap(SKPixmap)

Converts a SkiaSharp pixmap into a Xamarin.Android bitmap.

ToBitmap(SKPicture, SKSizeI)

Converts a SkiaSharp picture into a Xamarin.Android bitmap.

ToBitmap(SKBitmap)

Converts a SkiaSharp bitmap into a Xamarin.Android bitmap.

public static Android.Graphics.Bitmap ToBitmap (this SkiaSharp.SKBitmap skiaBitmap);

Parameters

skiaBitmap
SKBitmap

The SkiaSharp bitmap.

Returns

Bitmap

Returns a copy of the bitmap data as a Xamarin.Android bitmap.

Applies to

ToBitmap(SKImage)

Converts a SkiaSharp image into a Xamarin.Android bitmap.

public static Android.Graphics.Bitmap ToBitmap (this SkiaSharp.SKImage skiaImage);

Parameters

skiaImage
SKImage

The SkiaSharp image.

Returns

Bitmap

Returns a copy of the image data as a Xamarin.Android bitmap.

Applies to

ToBitmap(SKPixmap)

Converts a SkiaSharp pixmap into a Xamarin.Android bitmap.

public static Android.Graphics.Bitmap ToBitmap (this SkiaSharp.SKPixmap skiaPixmap);

Parameters

skiaPixmap
SKPixmap

The SkiaSharp pixmap.

Returns

Bitmap

Returns a copy of the pixel data as a Xamarin.Android bitmap.

Applies to

ToBitmap(SKPicture, SKSizeI)

Converts a SkiaSharp picture into a Xamarin.Android bitmap.

public static Android.Graphics.Bitmap ToBitmap (this SkiaSharp.SKPicture skiaPicture, SkiaSharp.SKSizeI dimensions);

Parameters

skiaPicture
SKPicture

The SkiaSharp picture.

dimensions
SKSizeI

The dimensions of the picture.

Returns

Bitmap

Returns a copy of the picture as a Xamarin.Android bitmap.

Applies to