Drawing
Comprehensive guide to drawing operations on images using BoxLang's image manipulation module.
Table of Contents
Setup & Configuration
Set Drawing Color
// Named color
img = ImageNew(400, 300, "rgb", "white");
img.setDrawingColor("red");
// Hex color
img.setDrawingColor("#FF0000");Set Background Color
Configure Stroke (Line Style)
Set Transparency
Enable Anti-Aliasing
Drawing Shapes
Draw Rectangle
Draw Rounded Rectangle
Draw Beveled Rectangle (3D Effect)
Draw Oval/Circle
Clear Rectangle
Drawing Lines
Draw Single Line
Draw Multiple Lines (Polyline)
Draw Polygon
Draw Single Point
Draw Arc
Drawing Curves
Quadratic Bézier Curve
Cubic Bézier Curve
Drawing Text
Simple Text
Styled Text
Text Examples
Advanced Drawing
Complex Shape Example
Chart/Graph Drawing
Drawing Axis Transformations
Translate Origin
Rotate Coordinate System
Shear Coordinate System
Complete Drawing Examples
Create Badge
Create Button
Watermark with Text
Drawing Tips
Next Steps
Last updated
Was this helpful?
