Edit

Share via


CGLayer Class

Definition

A hardware accelerated context.

public class CGLayer : IDisposable, ObjCRuntime.INativeObject
type CGLayer = class
    interface INativeObject
    interface IDisposable
Inheritance
CGLayer
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

Returns the graphics context associated with this layer.

Handle

Handle (pointer) to the unmanaged object representation.

Size

The size of the CGLayer

Methods

Create(CGContext, CGSize)

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

Dispose()

Releases the resources used by the CGLayer object.

Dispose(Boolean)

Releases the resources used by the CGLayer object.

Finalize()

Finalizer for the CGLayer object

Applies to

See also