ColorManagement Xojo Plugin |

# ICCColorProfile.ConvertToColorProfile Method (console safe)

Converts color profile on a RawBitmap taking destination hint as parameter, creating new instance of RawBitmap with the result.

ConvertToColorProfile(
bitmap as RawBitmap,
destinationHint as ICCColorProfile.DepthValues) as RawBitmap

#### Parameters

bitmap
  The RawBitmap to apply the color profile to.
destinationHint
  Hint of what depth per channel you wish the result image to have.

#### Returns

RawBitmap
  The converted RawBitmap as new instance.

#### Remarks

The destination hint can for example be used to force 16 bit per channel image down to 8 bit per channel image during conversion.

#### See Also

ICCColorProfile Class