Vertical or horizontal lines are simple and there is no jaggedness
Code: Select all
-e/brush=3 -e/tool line (10,10 10,100) -s/all (30,10 38,100) -e/cut
size setting. Conclusion the cut method is better and simple to code.
_________________________________________________________
...But there is a problem when the line is at an angle. Jaggedness appears in both methods, but it appears worse in the cut method,
and the cut method is difficult (there's no simple rule to derive the coordinates)
Code: Select all
-e/brush=3 -e/tool line (25,25 50,85) -s/all (40,26 45,23 96,80 90,86) -e/cut
_____________________________________________________
It is tempting to use the Free Rotate command to rotate a cut area.
Code: Select all
-layer/new -s/all (30,10 38,100) -e/cut -e/col a=0 -image/rotate=45
However this antialiasing causes problems when using the lasso tool
and pasting the line into another document.
I'll explain in next post.
________________________________________