AppleExtensions.ToCGImage Method

Definition

Overloads

ToCGImage(SKBitmap)

Converts a SkiaSharp bitmap into a CoreGraphics image.

ToCGImage(SKImage)

Converts a SkiaSharp image into a CoreGraphics image.

ToCGImage(SKPixmap)

Converts a SkiaSharp pixmap into a CoreGraphics image.

ToCGImage(SKPicture, SKSizeI)

Converts a SkiaSharp picture into a CoreGraphics image.

ToCGImage(SKBitmap)

Converts a SkiaSharp bitmap into a CoreGraphics image.

public static CoreGraphics.CGImage ToCGImage (this SkiaSharp.SKBitmap skiaBitmap);

Parameters

skiaBitmap
SKBitmap

The SkiaSharp bitmap.

Returns

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

Applies to

ToCGImage(SKImage)

Converts a SkiaSharp image into a CoreGraphics image.

public static CoreGraphics.CGImage ToCGImage (this SkiaSharp.SKImage skiaImage);

Parameters

skiaImage
SKImage

The SkiaSharp image.

Returns

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

Applies to

ToCGImage(SKPixmap)

Converts a SkiaSharp pixmap into a CoreGraphics image.

public static CoreGraphics.CGImage ToCGImage (this SkiaSharp.SKPixmap skiaPixmap);

Parameters

skiaPixmap
SKPixmap

The SkiaSharp pixmap.

Returns

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

Applies to

ToCGImage(SKPicture, SKSizeI)

Converts a SkiaSharp picture into a CoreGraphics image.

public static CoreGraphics.CGImage ToCGImage (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 CoreGraphics image.

Applies to