コード例 #1
0
 public BaseBuilder(int Spessore, Formats formats, MagickColor fillcolor, MagickColor bordercolor)
 {
     fmt         = formats;
     spessore    = fmt.ToPixels(Spessore);
     fillColor   = fillcolor;
     borderColor = bordercolor;
     makeEmptyImages();
 }
コード例 #2
0
        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);
        }