Whatever message this page gives is out now! Go check it out!

ImageGetBufferedImage

Last update:
May 18, 2026

Description

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

Returns

The java.awt.BufferedImage object.

Category

Function syntax

ImageGetBufferedImage(name)

See also

cfimage, ImageGetBlob, ImageGetEXIFTag, ImageGetHeight, ImageGetIPTCTag, ImageGetWidth, ImageInfo, IsImage, IsImageFile

History

ColdFusion 8: Added this function.

Parameters

Parameter
Description
name
Required. The ColdFusion image on which this operation is performed.

Usage

Use this function to return an image object that can be used with other Java Abstract Windowing Toolkit (AWT) objects embedded in the page.

Example

<!--- This example shows how to create a ColdFusion image, modify it, and retrieve the width of the buffered image. ---> 

<!--- Create a ColdFusion image from an existing JPEG file. ---> 

<cfimage source="../cfdocs/images/artgallery/paul05.jpg" name="myImage"> 

<!--- Blur the image by an order of 10. ---> 

<cfset ImageBlur(myImage,10)> 

<!--- Get the blurred image from the buffer and set it to variable x. ---> 

<cfset x = ImageGetBufferedImage(myImage)> 

<!--- Return the width of the buffered image. ---> 

<cfoutput>#x.getWidth()# 

</cfoutput>

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page