MonobjcMonobjc Documented Class Library
InitWithCGLayer Method (layer)
NamespacesMonobjc.QuartzCoreCIImageInitWithCGLayer(IntPtr)

Initializes an image object from the contents supplied by a CGLayer object.

Original signature is '- (id)initWithCGLayer:(CGLayerRef)layer'

Available in 4 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual Id InitWithCGLayer(
	IntPtr layer
)
Public Overridable Function InitWithCGLayer ( _
	layer As IntPtr _
) As Id
public:
virtual Id^ InitWithCGLayer(
	IntPtr layer
)
Parameters
layer (IntPtr)
A CGLayer object. For more information see Quartz 2D Programming Guide and CGLayer Reference.
Return Value
The initialized image object or nil if the object could not be initialized.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)