Image manipulation

Methods

  • image.addBorder() Adds a rectangular border around the outside edge of a image.
  • image.blur() Smooths image.
  • image.clearRect() Clears the specified rectangle by filling it with the background color of the current drawing surface.
  • image.copy() Copies a rectangular area of an image.
  • image.crop() Crops a image to a specified rectangular area.
  • image.drawArc() Draws a circular or elliptical arc.
  • image.drawBeveledRect() Draws a rectangle with beveled edges.
  • image.drawCubicCurve() Draws a cubic curve.
  • image.drawDrawLines() Draws a sequence of connected lines defined by arrays of x and y coordinates.
  • image.drawImage() this function is deprecated, use ImagePaste instead. Draws a image on a image with the baseline of the first character positioned at (x,y) in the image.
  • image.drawLine() Draws a single line defined by two sets of x and y coordinates on a image.
  • image.drawOval() Draws an oval.
  • image.drawPoint() Draws a point at the specified (x,y) coordinate.
  • image.drawQuadraticCurve() Draws a curved line. The curve is controlled by a single point.
  • image.drawRect() Draws a rectangle.
  • image.drawRoundRect() Draws a rectangle with rounded corners.
  • image.drawText() Draws a text string on a image with the baseline of the first character positioned at (x,y) in the image.
  • image.filter() the function ImageFilter allows to execute a filter against a image. Below you find a list of filter names supported by the function. every filter need other parameters for the configuration, listed as well below. average A filter which averages the 3x3 neighbourhood of each pixel, providing a simple blur. Parameters: - edgeAction (String) The action to perform for pixels off the image edges
  • image.filterColorMap() These are passed to the function ImageFilters (see ImageFilter documentation) which convert gray values to colors.
  • image.flip() Flips an image across an axis.
  • image.getBlob() Retrieves the bytes of the underlying image. The bytes are in the same image format as the source image.
  • image.getBufferedImage() Returns the java.awt.BufferedImage object underlying the current image.
  • image.getEXIFMetadata() Retrieves the Exchangeable Image File Format (EXIF) headers in an image as a CFML structure.
  • image.getEXIFTag() Retrieves the specified EXIF tag in an image.
  • image.getHeight() Retrieves the height of the image in pixels.
  • image.getIptcMetadata() Retrieves the International Press Telecommunications Council (IPTC )headers in a image as a struct. The IPTC metadata contains text that describes the image that is stored with it. IPTC metadata includes, but is not limited to, caption, keywords, credit, copyright, object name, created date, byline, headline, and source
  • image.getIPTCTag() Retrieves the value of the IPTC tag for a image.
  • image.getWidth() Retrieves the width of the specified image.
  • image.grayscale() Converts a image to grayscale.
  • image.info() Returns a structure that contains information about the image, such as height, width, color model, size, and filename.
  • image.negative() Inverts the pixel values of a image.
  • image.overlay() Reads two source images and overlays the second source image on the first source image.
  • image.paste() Takes 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).
  • image.resize() Resizes a image.
  • image.rotate() Rotates a image at a specified point by a specified angle.
  • image.rotateDrawingAxis() Rotates all subsequent drawing on a image at a specified point by a specified angle.
  • image.scaleToFit() Creates a resized image with the aspect ratio maintained.
  • image.setAntialiasing() Switches antialiasing on or off in rendered graphics.
  • image.setBackgroundColor() Sets the background color for the image. The background color is used for clearing a region. Setting the background color only affects the subsequent ImageClearRect calls
  • image.setDrawingAlpha() Sets the current drawing alpha for images. All subsequent graphics operations use the specified alpha.
  • image.setDrawingColor() Sets the current drawing color for images. All subsequent graphics operations use the specified color.
  • image.setDrawingStroke() Sets the drawing stroke for points and lines in subsequent images.
  • image.setDrawingTransparency() Specifies the degree of transparency of drawing functions.
  • image.sharpen() Sharpens a image by using the unsharp mask filter.
  • image.shear() Shears an image either horizontally or vertically.
  • image.shearDrawingAxis() Shears the drawing canvas.
  • image.translate() Copies an image to a new location on the plane.
  • image.translateDrawingAxis() Translates 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.
  • image.write() Writes a image to the specified filename or destination.
  • image.writeBase64() Writes Base64 images to the specified filename and destination.
  • image.writeToBrowser() Writes image to browser.
  • image.XORDrawingMode() Sets the paint mode of the image to alternate between the image's current color and the new specified color.

Objects

Functions

Tags

  • <cfimage> Lets you resize and add labels to GIF and JPEG format images.