The following vector editing commands are available for use in a Command File.
Makes polylines in the currently loaded vector image.
Splits polylines and unfilled polygons in the currently loaded vector image.
Changes the color of vectors to the color of the raster image beneath.
ChangeVectorColorsToRasterColors can be used to convert a color raster image to color vectors. However, you will normally get better results if you do this using the ColorLayersOn command – see vectorize a color image to color vectors.
Before using ChangeVectorColorsToRasterColors:
The following example code converts a color raster image to color vectors:
* Load the raster image map.tif
* Reduce the color depth of the raster image to 256 colors
* Make the paper background white
* Select suitable vectorization settings
* Vectorize the image
* Layer Colors have not been activated, so color vectors will not be produced
* For best results using ChangeVectorColorsToRasterColors
* you need to split any polylines first
* Change vector colors to match the raster colors beneath
* Remake the polylines
* Save the vectors as map.dxf
* Exit Scan2CAD
Rotate the currently loaded vector image by the number of Degrees you specify. If you enter a positive angle, the image will be rotated in a clockwise direction. If you enter a negative angle, it will be rotated in an anti clockwise direction.
The following example code rotates the vector image clockwise by 90 degrees:
Scales the currently loaded vector image vertically and/or horizontally.
The following example code scales the vector image by a factor of 2 in both the X and Y directions:
Vector editing commands
Have questions on this topic? Talk to us