API Documentation > CorelDRAW > 2025-v26 > Color > IVGColor
Color.ConvertTo method
Converts the color to a given color type. Optionally the source and or destination color context could be specified. Returns True if the color conversion has been performed
Syntax:
Function ConvertTo(ByVal ColorType As cdrColorType, Optional ByVal DestinationColorContext As ColorContext = Nothing, Optional ByVal SourceColorContext As ColorContext = Nothing) As Boolean
Parameters:
Name Type Description
ColorType
DestinationColorContext
Specifies the destination color context.
SourceColorContext
Specifies the source color context.
Remarks:
The ConvertTo method converts the active color to the specified color type. Optionally, the source color context or destination color context (or both) can be specified. The ConvertTo method returns True if the color conversion is successfully performed.