MonobjcMonobjc Documented Class Library
CreateCopyWithColorSpace Method (image, colorspace)
NamespacesMonobjc.ApplicationServicesCGImageCreateCopyWithColorSpace(IntPtr, IntPtr)

Create a copy of a bitmap image, replacing its colorspace.

Original signature is 'CGImageRef CGImageCreateCopyWithColorSpace ( CGImageRef image, CGColorSpaceRef colorspace );'

Available in Mac OS X version 10.3 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static IntPtr CreateCopyWithColorSpace(
	IntPtr image,
	IntPtr colorspace
)
Public Shared Function CreateCopyWithColorSpace ( _
	image As IntPtr, _
	colorspace As IntPtr _
) As IntPtr
public:
static IntPtr CreateCopyWithColorSpace(
	IntPtr image, 
	IntPtr colorspace
)
Parameters
image (IntPtr)
MISSING
colorspace (IntPtr)
MISSING
Return Value
A new Quartz image that is a copy of the image passed as the image parameter but with its color space replaced by that specified by the colorspace parameter. Returns NULL if image is an image mask, or if the number of components of colorspace is not the same as the number of components of the colorspace of image. You are responsible for releasing this object using CGImageRelease.
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)