Fluent Builder
Creating Images
ImageNew()
// From file path
img = ImageNew("images/photo.jpg");
// From URL
img = ImageNew("https://example.com/image.png");
// From base64 string
img = ImageReadBase64(base64String);
// Blank canvas
img = ImageNew(800, 600);
img = ImageNew(800, 600, "rgb");
img = ImageNew(800, 600, "rgb", "white");Transformations
resize(width, height, [interpolation], [blurFactor])
scaleToFit(size, [interpolation])
rotate(angle)
crop(x, y, width, height)
transpose(operation)
translate(x, y)
shear(amount, dimension)
Color Adjustments
grayScale()
negative()
Filters & Effects
blur([radius])
sharpen(gain)
addBorder(thickness, color)
Compositing
overlay(imageToOverlay, overlayRule, transparency)
drawImage(image, x, y)
Drawing Operations
Drawing Setup
Shape Drawing
drawRect(x, y, width, height, [filled])
drawRoundRect(x, y, width, height, arcWidth, arcHeight, [filled])
drawOval(x, y, width, height, [filled])
drawBeveledRect(x, y, width, height, raised, [filled])
drawArc(x, y, width, height, startAngle, arcAngle, [filled])
Line Drawing
drawLine(x1, y1, x2, y2)
drawLines(xCoords, yCoords, isPolygon, [filled])
Curve Drawing
drawCubicCurve(x1, y1, ctrlx1, ctrly1, ctrlx2, ctrly2, x2, y2)
drawQuadraticCurve(ctrlx, ctrly, x1, y1, x2, y2)
Text Drawing
drawText(text, x, y, [fontConfig])
Utility Drawing
clearRect(x, y, width, height)
Drawing Axis Transformations
rotateDrawingAxis(angle, x, y)
translateDrawingAxis(x, y)
shearDrawingAxis(x, y)
Copying & Duplication
copy()
copy(x, y, width, height, dx, dy)
Writing Images
write([path])
Information & Metadata
getWidth() / getHeight()
info()
getExifMetadata() / getIPTCMetadata()
getExifTag(tag) / getIPTCTag(tag)
getBlob()
getBufferedImage()
Complete Chaining Example
Working with Multiple Images
Important Notes
File Handling
Lazy Loading
Color Format
Method Chaining
Metadata
Related Documentation
Last updated
Was this helpful?
