API Documentation > CorelDRAW > 2025-v26
TraceSettings class
TraceSettings class
Syntax:
Class TraceSettings
Remarks:
The TraceSettings class represents the PowerTRACE feature, which lets you convert bitmaps into vector images.
Properties:
Name Description
BackgroundColor Returns the currently selected background color
BackgroundRemovalMode Specifies whether the background color should be detected automatically or specified by the user
BitmapHeight Returns the height of the original bitmap in pixels
BitmapWidth Returns the width of the original bitmap in pixels
Color Returns the given color from the generated color palette
ColorCount Returns the number of colors in the generated color palette
ColorMode Specifies the color model of resulting vector objects
CornerSmoothness Specifies the corner smoothness
CurveCount Returns the number of curves that will be generated during the trace
DeleteOriginalObject Specifies whether the original image should be deleted after trace
DetailLevel Specifies the level of detail in the resulting trace
DetailLevelPercent Specifies the level of detail as the percentage value of the maximum allowed level of detail
GroupObjectsByColor Specifies whether to group objects of the same color
MaxDetailLevel Returns the maximum level of detail attainable with the current image
MergeAdjacentObjects Specifies whether to merge adjacent objects of the same color
MinDetailLevel Returns the minimum allowed level of detail for tracing the current image
NodeCount Returns the number of curve nodes that will be generated during the trace
PaletteID Specifies the fixed palette to use if spot color mode is selected
RemoveBackground Specifies whether the background objects should be deleted
RemoveEntireBackColor Specifies whether all the objects with the background color should be deleted from the traced image
RemoveOverlap Specifies whether to remove object overlap
Smoothing Specifies the smoothing level
TraceType Specifies the type of trace to perform
Methods:
Name Description
ApplyChanges Applies changes made to trace parameters and recalculates the trace
Finish Completes the trace process and generates vector objects
SetColorCount Changes the number of colors to be used in the resulting trace
SetColorMode Changes the color model of resulting vector objects and resets the generated color palette
ShowDialog Shows the trace dialog to the user. Returns True if OK button was pressed