2011-08-22 11 views

답변

4

DrawString 메서드를 사용하여 텍스트를 이미지에 쓸 수 있습니다.

이미지에 :

using (Graphics g = Graphics.FromImage(yourImage)) 
{ 
    g.DrawString(...); 
} 

또는 이미지에 : 당신이 이미지에 텍스트를 추가하거나 이미지에 텍스트를 표시하려는 경우

// Create string to draw. 
String drawString = "Sample Text"; 

// Create font and brush. 
Font drawFont = new Font("Arial", 16); 
SolidBrush drawBrush = new SolidBrush(Color.Black); 

// Create point for upper-left corner of drawing. 
PointF drawPoint = new PointF(150.0F, 150.0F); 

// Draw string to screen. 
e.Graphics.DrawString(drawString, drawFont, drawBrush, drawPoint); 
3

그것은하지 분명

e.Graphics.DrawImage(...); 
e.Graphics.DrawString(...); 
관련 문제