Table of Contents

Struct ImageIO.CGImageSourceRef

Namespace
Xui.Runtime.MacOS
Assembly
Xui.Runtime.MacOS.dll
public ref struct ImageIO.CGImageSourceRef : IDisposable
Implements
Inherited Members

Constructors

CGImageSourceRef(nint)

public CGImageSourceRef(nint self)

Parameters

self nint

Fields

Self

public readonly nint Self

Field Value

nint

Methods

CreateImageAtIndex(nuint)

Decodes the image at index (0 for the primary frame). Returns a new CGImageRef that the caller owns and must dispose.

public CoreGraphics.CGImageRef CreateImageAtIndex(nuint index = 0)

Parameters

index nuint

Returns

CoreGraphics.CGImageRef

CreateWithURL(nint)

Creates a CGImageSource from a CFURL. The source is retained; caller must dispose.

public static ImageIO.CGImageSourceRef CreateWithURL(nint cfUrlRef)

Parameters

cfUrlRef nint

Returns

ImageIO.CGImageSourceRef

Dispose()

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

public void Dispose()

Operators

implicit operator nint(CGImageSourceRef)

public static implicit operator nint(ImageIO.CGImageSourceRef r)

Parameters

r ImageIO.CGImageSourceRef

Returns

nint