Table of Contents

Class CoreGraphics.CGImage

Namespace
Xui.Runtime.MacOS
Assembly
Xui.Runtime.MacOS.dll

Long-lived CGImage wrapper for images that persist across multiple frames. Wraps a native CGImageRef pointer and handles CoreFoundation reference counting. This is the class equivalent to D2D1.Bitmap1 in the Windows runtime.

public class CoreGraphics.CGImage : IDisposable
Inheritance
CoreGraphics.CGImage
Implements
Inherited Members

Constructors

CGImage(nint)

public CGImage(nint ptr)

Parameters

ptr nint

Properties

Height

public uint Height { get; }

Property Value

uint

Width

public uint Width { get; }

Property Value

uint

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

~CGImage()

protected ~CGImage()

Operators

implicit operator nint(CGImage?)

public static implicit operator nint(CoreGraphics.CGImage? image)

Parameters

image CoreGraphics.CGImage

Returns

nint