ImageCFC: Documentation: Method Description

imageCFC.setOption()

Description

Sets one of the ImageCFC options (see options

Returns

Nothing.

Function Syntax

setOption(key, val)

Example

<cfset imageCFC = createObject("component","image")>
<cfset imageCFC.setOption("defaultJpegCompression","70")>
<cfset imageCFC.setOption("throwOnError","Yes")>
<cfset imageCFC.setOption("textAntiAliasing","No")>
<cfset imageCFC.setOption("interpolation","bilinear")>
<cfset imageCFC.setOption("tempDirectory",getTempDirectory())>

Please read this project's LICENSE

This is an open source project written by Rick Root. Please visit The Coldfusion Open Source Blog for more information.

Please report bugs, make suggestions, and send compliments to me via email.

ParameterRequired?DefaultDescription
key YES - The name of the option to be set.
val YES - The value of the option to be set.