Contents

converting(to:renderingIntent:)

Converts the bitmap image representation to the specified color space.

Declaration

func converting(to targetSpace: NSColorSpace, renderingIntent: NSColorRenderingIntent) -> NSBitmapImageRep?

Parameters

  • targetSpace:

    The new color space.

  • 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 color space, it is returned as is.

See Also

Managing Color Spaces