CGLayer CGLayer Class

Definition

A hardware accelerated context.

public class CGLayer : IDisposable, ObjCRuntime.INativeObject
type CGLayer = class
    interface INativeObject
    interface IDisposable
Inheritance
CGLayerCGLayer
Implements

Remarks

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

To create CGLayers, use the Create(CGContext, CGSize) method.

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

Properties

Context Context

Returns the graphics context associated with this layer.

Handle Handle

Handle (pointer) to the unmanaged object representation.

Size Size

The size of the CGLayer

Methods

Create(CGContext, CGSize) Create(CGContext, CGSize)

Creates a new CGLayer object with the specified graphics context and size

Dispose() Dispose()

Releases the resources used by the CGLayer object.

Dispose(Boolean) Dispose(Boolean)

Releases the resources used by the CGLayer object.

Finalize() Finalize()

Finalizer for the CGLayer object

Applies to

See also