Image Functions

namedescription
imageAddBorderAdds a rectangular border around the outside edge of a ColdFusion image.
imageBlurSmooths (blurs) the ColdFusion image.
imageClearRectClears the specified rectangle by filling it with the background color of the current drawing surface.
imageCopyCopies a rectangular area of an image.
imageCropCrops a ColdFusion image to a specified rectangular area.
imageDrawArcDraws a circular or elliptical arc.
imageDrawBeveledRectDraws a rectangle with beveled edges.
imageDrawCubicCurveDraws a cubic curve.
imageDrawLineDraws a single line defined by two sets of x and y coordinates on a ColdFusion image.
imageDrawLinesDraws a sequence of connected lines defined by arrays of x and y coordinates.
imageDrawOvalDraws an oval.
imageDrawPointDraws a point at the specified (x,y) coordinate.
imageDrawQuadraticCurveDraws a curved line. The curve is controlled by a single point.
imageDrawRectDraws a rectangle.
imageDrawRoundRectDraws a rectangle with rounded corners.
imageDrawTextDraws a text string on a ColdFusion image with the baseline of the first character positioned at (x,y) in the image.
imageFlipFlips an image across an axis.
imageGetBlobRetrieves the bytes of the underlying image. The bytes are in the same image format as the source image.
imageGetBufferedImageReturns the java.awt.BufferedImage object underlying the current ColdFusion image.
imageGetEXIFTagRetrieves the specified EXIF tag in an image.
imageGetHeightRetrieves the height of the ColdFusion image in pixels.
imageGetIPTCTagRetrieves the value of the IPTC tag for a ColdFusion image.
imageGetWidthRetrieves the width of the specified ColdFusion image.
imageGrayscaleConverts a ColdFusion image to grayscale.
imageInfoReturns a structure that contains information about the image, such as height, width, color model, size, and filename.
imageNegativeInverts the pixel values of a ColdFusion image.
imageNewCreates a ColdFusion image.
imageOverlayReads two source ColdFusion images and overlays the second source image on the first source image.
imagePasteTakes two images and an (x,y) coordinate and draws the second image over the first image with the upper-left corner at coordinate (x,y).
imageReadReads the on-disk or in-memory source pathname or URL and creates a ColdFusion image.
imageReadBase64Creates a ColdFusion image from a Base64 string.
imageResizeResizes a ColdFusion image.
imageRotateRotates a ColdFusion image at a specified point by a specified angle.
imageRotateDrawingAxisRotates all subsequent drawing on a ColdFusion image at a specified point by a specified angle.
imageScaleToFitCreates a resized image with the aspect ratio maintained.
imageSetAntialiasingSwitches antialiasing on or off in rendered graphics.
imageSetBackgroundColorSets the background color for the ColdFusion image. The background color is used for clearing a region. Setting the background color only affects the subsequent ImageClearRect calls.
imageSetDrawingColorSets the current drawing color for ColdFusion images. All subsequent graphics operations use the specified color.
imageSetDrawingStrokeSets the drawing stroke for points and lines in subsequent ColdFusion images.
imageSetDrawingTransparencySpecifies the degree of transparency of drawing functions.
imageSharpenSharpens a ColdFusion image by using the unsharp mask filter.
imageShearShears an image either horizontally or vertically. For each pixel (x, y) of the destination, the source value at the fractional subpixel position (x', y') is constructed with an Interpolation object and written to the destination.
imageShearDrawingAxisShears the drawing canvas.
imageTranslateCopies an image to a new location on the plane.
imageTranslateDrawingAxisTranslates the origin of the image context to the point (x,y) in the current coordinate system. Modifies the image context so that its new origin corresponds to the point (x,y) in the image’s original coordinate system.
imageWriteWrites a ColdFusion image to the specified on-disk or in-memory destination.
imageWriteBase64Writes Base64 images to the specified on-disk or in-memory destination.
imageXORDrawingModeSets the paint mode of the image to alternate between the image’s current color and the new specified color.
isImageDetermines whether a variable returns a ColdFusion image.
isImageFileVerifies whether an image file is valid.