Share via


CGLayer Class

Definition

A hardware accelerated context.

public class CGLayer : CoreFoundation.NativeObject
type CGLayer = class
    inherit NativeObject
Inheritance

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

Name Description
Context

Returns the graphics context associated with this layer.

Handle (Inherited from DisposableObject)
Owns (Inherited from DisposableObject)
Size

The size of the CGLayer

Methods

Name Description
ClearHandle() (Inherited from DisposableObject)
Create(CGContext, CGSize)

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

Dispose() (Inherited from DisposableObject)
Dispose(Boolean) (Inherited from NativeObject)
Equals(Object) (Inherited from DisposableObject)
GetCheckedHandle() (Inherited from DisposableObject)
GetHashCode() (Inherited from DisposableObject)
InitializeHandle(NativeHandle) (Inherited from DisposableObject)
Release()
Retain()

Extension Methods

Name Description
GetHandle(INativeObject)
GetNonNullHandle(INativeObject, String)

Applies to

See also