Minor stuff and pie graphs

tonyc on 2001-09-23T03:07:15

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.