MonobjcMonobjc Documented Class Library
InitWithCGImage Method (cgImage)

Returns an NSBitmapImageRep object created from a Core Graphics image object.

Original signature is '- (id)initWithCGImage:(CGImageRef)cgImage'

Available in Mac OS X v10.5 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual Id InitWithCGImage(
	IntPtr cgImage
Public Overridable Function InitWithCGImage ( _
	cgImage As IntPtr _
) As Id
virtual Id^ InitWithCGImage(
	IntPtr cgImage
cgImage (IntPtr)
A Core Graphics image object (an opaque type) from which to create the receiver. This opaque type is retained.
Return Value
An NSBitmapImageRep object initialized from the contents of the Core Graphics image or nil if the NSBitmapImageRep couldn’t be created.
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)