Whatever message this page gives is out now! Go check it out!
ImageNew([source, width, height, imageType, canvasColor]) |
Parameter | Description |
source | Optional. The source image on-disk or in-memory pathname, URL, a ColdFusion variable that is read into the new ColdFusion image, or a Java buffered image. |
width | Optional. The width of the new ColdFusion image. Valid when the height is specified and the source is not. |
height | Optional. The height of the new ColdFusion image. Valid when the width is specified and the source is not. |
imageType | Optional. The type of the ColdFusion image to create:
|
canvasColor | Optional. Color of the image canvas:
|
Example 1 |
<!--- This example shows how to create a ColdFusion image from a BLOB in a database. ---> |
<!--- This example shows how to create a ColdFusion image from a URL. ---> |
<!--- This example shows how to use the cffile tag to convert an image file to binary format and pass it as a variable to the ImageNew function. ---> |
<!--- This example shows how to use the cffile tag to write a ColdFusion image to a file. ---> |
<!--- This example uses cfscript to pass a Java buffered image to the ImageNew function. ---> |