CGLayer Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |