public BaseBuilder(int Spessore, Formats formats, MagickColor fillcolor, MagickColor bordercolor) { fmt = formats; spessore = fmt.ToPixels(Spessore); fillColor = fillcolor; borderColor = bordercolor; makeEmptyImages(); }
protected virtual void makeEmptyImages() { frontFormat = fmt.CDV_Full_v; frontFormat.Width += fmt.ToPixels(5); frontFormat.Height += fmt.ToPixels(5); borderFormat = new(spessore, frontFormat.Height); topFormat = new(frontFormat.Width, spessore); topImage = new(fillColor, topFormat.Width, topFormat.Height); bottomImage = new(fillColor, topFormat.Width, topFormat.Height); leftImage = new(fillColor, borderFormat.Width, borderFormat.Height); rightImage = new(fillColor, borderFormat.Width, borderFormat.Height); frontImage = new(fillColor, frontFormat.Width, frontFormat.Height); backImage = new(fillColor, frontFormat.Width, frontFormat.Height); }