MacExtensions.ToNSImage Method

Definition

Overloads

ToNSImage(SKBitmap)

Converts a SkiaSharp bitmap into a AppKit image.

ToNSImage(SKImage)

Converts a SkiaSharp image into a AppKit image.

ToNSImage(SKPixmap)

Converts a SkiaSharp pixmap into a AppKit image.

ToNSImage(SKPicture, SKSizeI)

Converts a SkiaSharp picture into a AppKit image.

ToNSImage(SKBitmap)

Converts a SkiaSharp bitmap into a AppKit image.

public static AppKit.NSImage ToNSImage (this SkiaSharp.SKBitmap skiaBitmap);

Parameters

skiaBitmap
SKBitmap

The SkiaSharp bitmap.

Returns

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

Applies to

ToNSImage(SKImage)

Converts a SkiaSharp image into a AppKit image.

public static AppKit.NSImage ToNSImage (this SkiaSharp.SKImage skiaImage);

Parameters

skiaImage
SKImage

The SkiaSharp image.

Returns

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

Applies to

ToNSImage(SKPixmap)

Converts a SkiaSharp pixmap into a AppKit image.

public static AppKit.NSImage ToNSImage (this SkiaSharp.SKPixmap skiaPixmap);

Parameters

skiaPixmap
SKPixmap

The SkiaSharp pixmap.

Returns

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

Applies to

ToNSImage(SKPicture, SKSizeI)

Converts a SkiaSharp picture into a AppKit image.

public static AppKit.NSImage ToNSImage (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 AppKit image.

Applies to