Table of Contents

Struct CoreGraphics.CGImageRef

Namespace
Xui.Runtime.MacOS
Assembly
Xui.Runtime.MacOS.dll
public ref struct CoreGraphics.CGImageRef : IDisposable
Implements
Inherited Members

Constructors

CGImageRef(nint)

public CGImageRef(nint self)

Parameters

self nint

Fields

Self

public readonly nint Self

Field Value

nint

Properties

Height

public nuint Height { get; }

Property Value

nuint

Width

public nuint Width { get; }

Property Value

nuint

Methods

CGImageRelease(nint)

public static extern void CGImageRelease(nint image)

Parameters

image nint

Create(nuint, nuint, nuint, nuint, nuint, nint, CGBitmapInfo, nint, bool)

Creates a new CGImage from raw pixel data provided by a data provider. The caller owns the returned image and must dispose it.

public static CoreGraphics.CGImageRef Create(nuint width, nuint height, nuint bitsPerComponent, nuint bitsPerPixel, nuint bytesPerRow, nint colorspace, CoreGraphics.CGBitmapInfo bitmapInfo, nint provider, bool shouldInterpolate = true)

Parameters

width nuint
height nuint
bitsPerComponent nuint
bitsPerPixel nuint
bytesPerRow nuint
colorspace nint
bitmapInfo CoreGraphics.CGBitmapInfo
provider nint
shouldInterpolate bool

Returns

CoreGraphics.CGImageRef

CreateWithImageInRect(nint, CGRect)

Creates a new CGImage cropped to rect (in image pixel coordinates). The caller owns the returned image and must dispose it.

public static CoreGraphics.CGImageRef CreateWithImageInRect(nint image, CoreGraphics.CGRect rect)

Parameters

image nint
rect CoreGraphics.CGRect

Returns

CoreGraphics.CGImageRef

Dispose()

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

public void Dispose()

Operators

implicit operator nint(CGImageRef)

public static implicit operator nint(CoreGraphics.CGImageRef r)

Parameters

r CoreGraphics.CGImageRef

Returns

nint