Mac Guides | Samples

MonoMac.CoreGraphics.CGLayer Class

A hardware accelerated context.

See Also: CGLayer

Syntax

public class CGLayer : INativeObject, IDisposable

Remarks

CGLayers can be hardware accelerated and developers are encouraged to use this instead of CGBitmaps for off-screen rendering operations.

Once you create a CGLayer, you extract the CGContext instance by accessing the Context property.

Related content

Requirements

Namespace: MonoMac.CoreGraphics
Assembly: XamMac (in XamMac.dll)
Assembly Versions: 0.0.0.0

The members of MonoMac.CoreGraphics.CGLayer are listed below.

See Also: Object

Public Properties

[read-only]
ContextCGContext.
[read-only]
HandleIntPtr. Handle (pointer) to the unmanaged object representation.
[read-only]
SizeSizeF.

Public Methods

static
Create(CGContext, SizeF) : CGLayer
Dispose()
Releases the resourced used by the CGLayer object.
Finalize()
Finalizer for the CGLayer object

Protected Methods

Dispose(Boolean)
Releases the resourced used by the CGLayer object.