Getting Started
Getting started guide for image manipulation in BoxLang.
Table of Contents
Creating Images
From a File Path
// Using ImageRead()
img = ImageRead("path/to/image.jpg");
// Using ImageNew() - recommended
img = ImageNew("path/to/image.jpg");From a URL
Create a Blank Canvas
From Base64 String
From Java BufferedImage
Reading Images
ImageRead() vs ImageNew()
Supported Source Types
Basic Operations
Get Image Information
Check Image Properties
Get Supported Formats
Method Chaining
Traditional BIF Approach
Fluent BoxImage Approach (Recommended)
Why Method Chaining?
Mixing Approaches
Saving Images
Write to File
Convert to Base64
Get as Byte Array
Get Java BufferedImage
Working with BoxImage
Creating BoxImage Instances
BoxImage is Mutable and Chainable
Copying Images
Complete Example
Quick Reference
Essential BIFs
Function
Purpose
Example
Essential Member Functions
Next Steps
Last updated
Was this helpful?
