O'Reilly logo

ColdFusion 8 Developer Tutorial by John Farrar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Working with Images

Historically, one of the most requested features for ColdFusion has been native graphics-processing features. It does not process photos on the level of Photoshop, but it does many things that are said to have more than a handful of wonderful features.

Let's look at our first image-handling code. We will also create each of our images before sending them to the page. It is a best practice to separate processing from display code wherever possible, and this is what we will do on this page. The next thing we will do is create a new image to work with, that is 100 by 100 pixels. We set a size attribute of 50, which we will use for all of our coding examples. Then, we set the color of our pen to black. Lastly, we draw some text ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required