Language

CGLayer.Create(CGContext, CGSize) Method

Definition

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

public static CoreGraphics.CGLayer Create(CoreGraphics.CGContext? context, CoreGraphics.CGSize size);
static member Create : CoreGraphics.CGContext * CoreGraphics.CGSize -> CoreGraphics.CGLayer

Parameters

context
CGContext

The source context, or null.

size
CGSize

The size for the CGLayer.

Returns

A new CGLayer instance.

Applies to