티스토리 뷰

        static void Main(string[] args)
        {
            string imagePath = "png-test.png";

            using (Bitmap bitmap = new Bitmap(imagePath))
            {
                // 그래픽스 객체 생성
                using (Graphics graphics = Graphics.FromImage(bitmap))
                {
                    // 텍스트 쓰기 설정
                    string text = "여기에 원하는 글자";
                    Font font = new Font("Arial", 20, FontStyle.Bold, GraphicsUnit.Pixel);
                    PointF point = new PointF(10, 20);  // 텍스트가 위치할 좌표
                    SolidBrush brush = new SolidBrush(Color.Black);  // 텍스트 색상

                    // 이미지에 텍스트 그리기
                    graphics.DrawString(text, font, brush, point);
                }

                // 파일로 저장
                bitmap.Save("path_to_save_modified_image.png", ImageFormat.Png);
            }

            Console.WriteLine("이미지 저장 완료!");

            Console.Read();
        }