DrawTool is a global object accessible in the JScript document operation and enables usage of drawing tools from scripts.
BMDrawOver - paint over the background (the common blending mode).
BMReplace - replace pixels. This mode differs from the previous
in cases where the color is semitransparent.
BMDrawUnder - the result will be visible only if the background is semitransparent.
RMBinary - jagged edges.
RMSmooth - with antialiasing.
SFMOutline - draw outlines of shapes.
SFMFilled - draw shapes using active fill-style.
SFMCombined - draw outlines and fill interior using active fill-style.
CMArbitrary - use arbitrary (non-integral) coordinates.
CMIntegral - integral coordinates.
// set color to green and fill shapes with that color
DrawTool.SetColor1(0, 1, 0, 1);
DrawTool.ShapeFillMode = DrawTool.SFMFilled;
// use the simplified method to draw a circle with center at [30, 40]
// and diameter of 20 pixels:
DrawTool.ELLIPSE(Document, 30, 40, 20);
// the previous command is internally translated to:
// DrawTool.Execute(Document, "ELLIPSE", "30,40,20");
Find out how Vista icons differ from XP icons.
See how RealWorld Icon Editor handles Vista icons.