imageGetBufferedImage

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

imageGetBufferedImage(name) → returns any

Member Function Syntax

someImage.getBufferedImage()

imageGetBufferedImage 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());

Fork me on GitHub