コード例 #1
0
        private void Draw3(string sourcePath, string outputPath, string imageText, Size size, float x1, float y1)
        {
            var fileName = string.Format("{0}x{1}.png", size.Width, size.Height);
            var informer = new Informer(sourcePath + fileName);

            informer.DrawText("Партийный проект", Color.White, x1, y1 - 22);
            informer.DrawText(imageText, Color.White, x1, y1);
            informer.SaveToPng(outputPath + fileName);
        }
コード例 #2
0
        private void Draw3(string sourcePath, string outputPath, string imageText, Size size, float x1, float y1)
        {
            var fileName = string.Format("{0}x{1}.png", size.Width, size.Height);
            var informer = new Informer(sourcePath + fileName);

            informer.DrawText("Партийный проект", Color.White, x1, y1 - 22);
            informer.DrawText(imageText, Color.White, x1, y1);
            informer.SaveToPng(outputPath + fileName);
        }