Description
Displays the trace dialog box.
Note: this command uses the alpha channel in EPS preview, to mask out parts that are transparent in the EPS itself (assuming that the application that generated the EPS generated also a correct alpha channel in the preview).
Selecting only a picture (without selecting a rectangle for the background) they automatically use the alpha channel - if present - to determine which parts of the picture are background (transparent) and so shout be cut out.
A new algorithm to do picture tracing has been added. It is enabled by specifyng 'M+' in the options string of the Page.ImgTrace and Page.ImgTraceEx commands. This new algorithm can detect mutliple polygons, even inside the picture, and uses a better way to compare colors to identify the background. Drawbacks: it is slow and on complex pictures it can generate VERY complex shapes.
Syntax
Page.ImgTraceDlg |
Remarks
Returns an error code.
Context
Page designer
See also
All image related commands
AddImageEx, ArticleNewPicture, ImgInsert, ImgInsertId, ImgInsertType, ImgNewDummyEx
ImgCrop, ImgSetCrop, GetImgCropHeight, GetImgCropLeft, GetImgCropTop, GetImgCropWidth, GetImgHeight, GetImgWidth
ImgZoom, ImgZoomPct, ViewZoomImage, GetImgZoomPctX, GetImgZoomPctY
GetSelectedImgId, GetSelectedImgDummy,
ImgGetColor, ImgSetColor, ImgGetFlag, ImgSetFlag, ImgImportPath Method
ImgTrace, ImgTraceDlg, ImgTraceEx
ImgUpdate, TxtSelectReference, ViewShowImg