C# 이미지에 글쓰기..

Posted 2007/02/13 17:51 by J2L
Bitmap b = new Bitmap(200, 100);                                     //비트맵 생성
Graphics g = Graphics.FromImage(b);                               //그래팩 클래스 생성 (이미지로부터)
g.Clear(Color.Gray);                                                       //그래픽을 회색색칠하기
Brush blackBrush = new SolidBrush(Color.Black);             // FontColor
FontFamily familyName = new FontFamily("굴림");               // FontFamily
System.Drawing.Font myFont = new System.Drawing.Font(familyName, 20, FontStyle.Regular, GraphicsUnit.Pixel);                                                        // 폰트생성
PointF startPoint = new PointF(10, 20);                               // 글자 시작위치
g.DrawString("Hello World!", myFont, blackBrush, startPoint); //글자 쓰기
b.MakeTransparent(Color.Gray);                                        //회색을 투명색으로 지정
g.DrawImage(b, new Point(10, 10));                                     // 이미지에 그리기
크리에이티브 커먼즈 라이선스
Creative Commons License

'C#' 카테고리의 다른 글

HLSL  (0) 2007/02/27
Direct3D 메시의 크기 설정  (0) 2007/02/14
C# 이미지에 글쓰기..  (0) 2007/02/13
Direct3D 메시의 회전  (0) 2007/02/02
3D 렌더링...  (0) 2007/01/31
XNA GAME Studio Express 1.0  (0) 2007/01/26

Tag : , ,

« PREV : 1 : ... 69 : 70 : 71 : 72 : 73 : 74 : 75 : 76 : 77 : ... 85 : NEXT »