The following effects are included in the CFC CFImageEffects
The gradient effect is a drawing function that creates a gradient filled rectangle based on the colors you specify.
The reflection effect has become a popular staple of modern web design thanks to Apple Computer. This effect is seen in several Apple applications including iTunes and the iPhone. The reflection effect makes the surface under your image appear glassy and shiny. You specify the background surface color.
Adding rounded corners is a great way to make an ordinary photo look better. This function will take a photo or picture and round its corners.
Drop shadows are another great way to make a photo stand out. A shadow is added to any image you pass in.
Sepia tone is a great effect to apply to photographs. It adds similar artistic effect as grayscale does to a photo, however it uses brown and yellow tones.
This effect adds a plastic look to your image.
Sometimes you just want to make a photo darker, or lighter - we have you covered.
| Function Name | Arguments |
|---|---|
drawGradientFilledRect |
(imageObj, x, y, width, height, startColor, endColor, gradientDirection) |
applyReflectionEffect |
(imageObj [, backgroundColor, mirrorHeight, startOpacity]) |
applyPlasticEffect |
(imageObj [, backgroundColor, startOpacity, endOpacity]) |
applyRoundedCornersEffect |
(imageObj [, backgroundColor, cornerSize]) |
applyDropShadowEffect |
(imageObj [, backgroundColor, shadowColor, shadowWidth, shadowDistance]) |
brightenImage |
(imageObj) |
darkenImage |
(imageObj) |
sepiaTone |
(imageObj) |
View CFImageEffects Component Documentation
ColdFusion 8 or greater.
An additional license is required for each server instance this product is used on.
Still running ColdFusion 6 or ColdFusion 7? No worries. We have an Image Resize UDF that's super easy to use.