ColorManagement Xojo Plugin |

# ICCColorProfile.ConvertToColorProfile Method (console safe)

Converts color profile on a RawBitmap, creating new instance of RawBitmap with the result.

ConvertToColorProfile(
bitmap as RawBitmap) as RawBitmap

#### Parameters

bitmap
  The RawBitmap to apply the color profile to.

#### Returns

RawBitmap
  The converted RawBitmap as new instance.

#### Remarks

If the RawBitmap has no color profile defined then this method will fail and return error code in the LastError property.
Note that the plugin can only convert RGB based, Gray based profiles and CMYK based profiles as RawBitmap object does not support other kinds of color spaces currently.

#### See Also

ICCColorProfile Class