Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Journal of tonyc (123)

Saturday September 22, 2001
10:07 PM

Minor stuff and pie graphs

[ #812 ]

Over the last week I:

  1. changed the GIF code to write paletted images efficiently, where possible
  2. implemented image based fills
  3. implemented a simple unsharp mask
  4. change the convolution filter to clamp at low sample values

With the last two, Imager can finally reliably sharpen images, see the filters examples page for details, the convsharp and unsharpmask examples in particular.

I also started work on Imager::Graph, the base class of a set of modules meant for creating graphs of various types, starting with pie graphs.

The aim is to have Imager::Graph abstract the way the graphs look, colors, font sizes, positioning, element sizes and so on. All of this can be customized by the user, but they can get good results quickly. Since the basic looks are all controlled by Imager::Graph, Imager::Graph::Bar can use those same styles, to produce a graph that matches the pie chart produced by Imager::Graph::Pie.