imageGetBufferedImage

Returns the java.awt.BufferedImage object underlying the current ColdFusion image.

imageGetBufferedImage(name) → returns any

Member Function Syntax

someImage.getBufferedImage()

Argument Reference

name string
Required

The image on which this operation is performed.

Examples
Sample code invoking the imageGetBufferedImage function

CF 11+ Lucee 4.5+ Call getWidth() on the underlying java.awt.BufferedImage object of the image

imgObj = imageRead("http://cfdocs.org/apple-touch-icon.png");
x = imgObj.getBufferedImage();
writeOutput(x.getWidth());

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub