Edit

iOSExtensions.ToUIImage Method

Definition

Overloads

Name Description
ToUIImage(SKBitmap)

Converts a SkiaSharp bitmap into a UIKit image.

ToUIImage(SKImage)

Converts a SkiaSharp image into a UIKit image.

ToUIImage(SKPixmap)

Converts a SkiaSharp pixmap into a UIKit image.

ToUIImage(SKPicture, SKSizeI)

Converts a SkiaSharp picture into a UIKit image.

ToUIImage(SKBitmap, NFloat, UIImageOrientation)

Converts a SkiaSharp bitmap into a UIKit image.

ToUIImage(SKPixmap, NFloat, UIImageOrientation)

Converts a SkiaSharp pixmap into a UIKit image.

ToUIImage(SKPicture, SKSizeI, NFloat, UIImageOrientation)

Converts a SkiaSharp picture into a UIKit image.

ToUIImage(SKBitmap)

Converts a SkiaSharp bitmap into a UIKit image.

public static UIKit.UIImage ToUIImage(this SkiaSharp.SKBitmap skiaBitmap);

Parameters

skiaBitmap
SKBitmap

The SkiaSharp bitmap.

Returns

Returns a copy of the bitmap data as a UIKit image.

Applies to

ToUIImage(SKImage)

Converts a SkiaSharp image into a UIKit image.

public static UIKit.UIImage ToUIImage(this SkiaSharp.SKImage skiaImage);

Parameters

skiaImage
SKImage

The SkiaSharp image.

Returns

Returns a copy of the image data as a UIKit image.

Applies to

ToUIImage(SKPixmap)

Converts a SkiaSharp pixmap into a UIKit image.

public static UIKit.UIImage ToUIImage(this SkiaSharp.SKPixmap skiaPixmap);

Parameters

skiaPixmap
SKPixmap

The SkiaSharp pixmap.

Returns

Returns a copy of the pixel data as a UIKit image.

Applies to

ToUIImage(SKPicture, SKSizeI)

Converts a SkiaSharp picture into a UIKit image.

public static UIKit.UIImage ToUIImage(this SkiaSharp.SKPicture skiaPicture, SkiaSharp.SKSizeI dimensions);

Parameters

skiaPicture
SKPicture

The SkiaSharp picture.

dimensions
SKSizeI

The dimensions of the picture.

Returns

Returns a copy of the picture as a UIKit image.

Applies to

ToUIImage(SKBitmap, NFloat, UIImageOrientation)

Converts a SkiaSharp bitmap into a UIKit image.

public static UIKit.UIImage ToUIImage(this SkiaSharp.SKBitmap skiaBitmap, System.Runtime.InteropServices.NFloat scale, UIKit.UIImageOrientation orientation);

Parameters

skiaBitmap
SKBitmap

The SkiaSharp bitmap.

scale
NFloat

The scale factor for the image. A factor of 1.0 is the original size of the image.

orientation
UIImageOrientation

The rotation that is to be applied to the image.

Returns

Returns a copy of the bitmap data as a UIKit image.

Applies to

ToUIImage(SKPixmap, NFloat, UIImageOrientation)

Converts a SkiaSharp pixmap into a UIKit image.

public static UIKit.UIImage ToUIImage(this SkiaSharp.SKPixmap skiaPixmap, System.Runtime.InteropServices.NFloat scale, UIKit.UIImageOrientation orientation);

Parameters

skiaPixmap
SKPixmap

The SkiaSharp pixmap.

scale
NFloat

The scale factor for the image. A factor of 1.0 is the original size of the image.

orientation
UIImageOrientation

The rotation that is to be applied to the image.

Returns

Returns a copy of the pixel data as a UIKit image.

Applies to

ToUIImage(SKPicture, SKSizeI, NFloat, UIImageOrientation)

Converts a SkiaSharp picture into a UIKit image.

public static UIKit.UIImage ToUIImage(this SkiaSharp.SKPicture skiaPicture, SkiaSharp.SKSizeI dimensions, System.Runtime.InteropServices.NFloat scale, UIKit.UIImageOrientation orientation);

Parameters

skiaPicture
SKPicture

The SkiaSharp picture.

dimensions
SKSizeI

The dimensions of the picture.

scale
NFloat

The scale factor for the image. A factor of 1.0 is the original size of the image.

orientation
UIImageOrientation

The rotation that is to be applied to the image.

Returns

Returns a copy of the picture as a UIKit image.

Applies to