public LegendBitmapGenerator(Bitmap scratchBitmap)
{
_graphics = Graphics.FromImage(scratchBitmap);
_width = scratchBitmap.Width;
_resolution = Math.Max(scratchBitmap.HorizontalResolution, scratchBitmap.VerticalResolution);
_margin = 10;
_indentLevel = 0;
_font = new Font("Verdana", 8, System.Drawing.FontStyle.Bold);
_brush = new SolidBrush(System.Drawing.Color.Black);
_antialias = false;
}