imageGetBufferedImage

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

imageGetBufferedImage(name) → returns Image

Member Function Syntax

someImage.getBufferedImage()

Argument Reference for the imageGetBufferedImage function

name

Required: Yes
The image on which this operation is performed.

Examples sample code invoking the imageGetBufferedImage function


Using getBufferedImage member 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());

Fork me on GitHub