ColorManagement Xojo Plugin |

# ICCColorProfile.ConvertToColorProfileInPlace Method (console safe)

Converts color profile on a RawBitmap in place.

ConvertToColorProfileInPlace(
bitmap as RawBitmap)

#### Parameters

bitmap
  The RawBitmap to apply the color profile to.

#### Remarks

If the RawBitmap has no color profile defined then this method will fail and return error code in the LastError property.
For in place convert then the structure needs to be same. For example you can convert from one RGB Color Profile to another RGB Color profile in place since both would have same byte structure. While you cannot convert from RGB Color profile to Gray in place as they would not have same byte structure. You can however convert such without doing it in place.

This method can throw ICCColorProfileException.

#### See Also

ICCColorProfile Class