Zoo tutorials: [ SQL | Linux | XML ]
ProgZoo: [ Java | C# | VB | C++ | Perl ]
Log in

A Gentle Introduction to
Perl Programming

Smoothing

 

Graphics

Smoothing

We can improve our images by smoothing. This reduces the ugly "pixelated" quality of the images.

1. [ Perl ] Smoothing


Big

The first line is drawn without smoothing, the second is smoothed.

We set the smoothing on - after this all the drawing operations are slower, but better.

There must be be enough colours allocated for this to work (we use "true colour" here. One colour is specified as the anti alias and the special colour gdAntiAliased may be used.