iOSExtensions.ToUIImage Method

Definition

Overloads

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.

C#
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

SkiaSharp Views 2.88.x i druge verzije
Proizvod Verzije
SkiaSharp Views 1.60.x, 1.68.x, 2.80.x, 2.88.x

ToUIImage(SKImage)

Converts a SkiaSharp image into a UIKit image.

C#
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

SkiaSharp Views 2.88.x i druge verzije
Proizvod Verzije
SkiaSharp Views 1.60.x, 1.68.x, 2.80.x, 2.88.x

ToUIImage(SKPixmap)

Converts a SkiaSharp pixmap into a UIKit image.

C#
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

SkiaSharp Views 2.88.x i druge verzije
Proizvod Verzije
SkiaSharp Views 1.60.x, 1.68.x, 2.80.x, 2.88.x

ToUIImage(SKPicture, SKSizeI)

Converts a SkiaSharp picture into a UIKit image.

C#
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

SkiaSharp Views 2.88.x i druge verzije
Proizvod Verzije
SkiaSharp Views 1.60.x, 1.68.x, 2.80.x, 2.88.x

ToUIImage(SKBitmap, nfloat, UIImageOrientation)

Converts a SkiaSharp bitmap into a UIKit image.

C#
public static UIKit.UIImage ToUIImage (this SkiaSharp.SKBitmap skiaBitmap, 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

SkiaSharp Views 2.88.x i druge verzije
Proizvod Verzije
SkiaSharp Views 1.60.x, 1.68.x, 2.80.x, 2.88.x

ToUIImage(SKPixmap, nfloat, UIImageOrientation)

Converts a SkiaSharp pixmap into a UIKit image.

C#
public static UIKit.UIImage ToUIImage (this SkiaSharp.SKPixmap skiaPixmap, 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

SkiaSharp Views 2.88.x i druge verzije
Proizvod Verzije
SkiaSharp Views 1.60.x, 1.68.x, 2.80.x, 2.88.x

ToUIImage(SKPicture, SKSizeI, nfloat, UIImageOrientation)

Converts a SkiaSharp picture into a UIKit image.

C#
public static UIKit.UIImage ToUIImage (this SkiaSharp.SKPicture skiaPicture, SkiaSharp.SKSizeI dimensions, 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

SkiaSharp Views 2.88.x i druge verzije
Proizvod Verzije
SkiaSharp Views 1.60.x, 1.68.x, 2.80.x, 2.88.x