MonobjcMonobjc Documented Class Library
CreateWithImageInRect Method (image, rect)
NamespacesMonobjc.ApplicationServicesCGImageCreateWithImageInRect(IntPtr, CGRect)

Creates a bitmap image using the data contained within a subregion of an existing bitmap image.

Original signature is 'CGImageRef CGImageCreateWithImageInRect ( CGImageRef image, CGRect rect );'

Available in Mac OS X v10.4 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static IntPtr CreateWithImageInRect(
	IntPtr image,
	CGRect rect
)
Public Shared Function CreateWithImageInRect ( _
	image As IntPtr, _
	rect As CGRect _
) As IntPtr
public:
static IntPtr CreateWithImageInRect(
	IntPtr image, 
	CGRect rect
)
Parameters
image (IntPtr)
MISSING
rect (CGRect)
MISSING
Return Value
A CGImage object that specifies a subimage of the image. If the rect parameter defines an area that is not in the image, returns NULL.
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)