Instance Method

bitmapImageRepByConvertingToColorSpace:renderingIntent:

Converts the image rep to the specified colorspace

Declaration

- (NSBitmapImageRep *)bitmapImageRepByConvertingToColorSpace:(NSColorSpace *)targetSpace renderingIntent:(NSColorRenderingIntent)renderingIntent;

Parameters

targetSpace

The new colorSpace

renderingIntent

The rendering intent specifies how to handle colors that are not located within the target color space. The supported values are NSColorRenderingIntent.

Return Value

An NSBitmapImageRep, or nil, if the conversion fails. If the original NSBitmapImageRep already uses that colorSpace, it is returned as is.

See Also

Managing ColorSpaces

- bitmapImageRepByRetaggingWithColorSpace:

Changes the colorSpace tag of the receiver.

colorSpace

The color space of the bitmap.