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())>
ParameterRequired?DefaultDescription
key YES - The name of the option to be set.
val YES - The value of the option to be set.