ImageContrastbrightness()

Adjusts the contrast and/or brightness

Usage

BOOLEAN = ImageContrastbrightness( name, contrast, brightness )
Argument Summary
name the image object
contrast contrast value to apply
brightness brightness value fo apply [optional]

Calling

Supports named-parameter calling allowing you to use the function like:

ImageContrastbrightness(
   name=?, 
   contrast=?, 
   brightness=?
);

Supports passing parameters as a structure using ArgumentCollection:

ImageContrastbrightness( ArgumentCollection={
   name : ?, 
   contrast : ?, 
   brightness : ?
} );

Extra

<cfset im  = ImageRead( "http://www.openbluedragon.org/images/logo.gif" )>

<cfset ImageContractBrightness( image=im, brightness=3 )>
<cfset b = ImageWriteBase64( image=im, format="jpg", inhtmlformat=true )>

<img src="<cfoutput>#b#</cfoutput>" />