<!DOCTYPE html PUBLIC "- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Createing A Transparent Canvas With ImageNew()</title>
<style type="text/css">
body {
background-image: url( "striped_background.gif" ) ;
}
p {
text-align: center ;
}
img {
border: 3px solid #990000 ;
}
</style>
</head>
<body>
<h1>
Createing A Transparent Canvas With ImageNew()
</h1>
<cfset imgCanvas = ImageNew(
"",
200,
200,
"argb"
) />
<p>
<cfimage
action="writetobrowser"
source="#imgCanvas#"
format="png"
/>
</p>
</body>
</html>