示例#1
0
        private Bitmap BuildProductImage(Bitmap image, Bitmap design, Color color, int width, int height,
                                         int printableAreaTop, int printableAreaLeft, int printableAreaWidth, int printableAreaHeight)
        {
            var background = _imageHelper.CreateBackground(width, height, color);

            image = _imageHelper.ApplyBackground(image, background, color, width, height);
            return(_imageHelper.ApplyDesign(image, design, printableAreaTop, printableAreaLeft, printableAreaWidth,
                                            printableAreaHeight, color, width, height));
        }