People who often walk on to BBS should know that they should post a small gold medal and write a certain text on it.
Maybe this is no secret.
Today, I posted an ASP. NET implementation method. I think about how far away ASP was before. For more information, see the source.
Private Void Page_load ( Object Sender, system. eventargs E)
{
String Drawstring = This . Request [ " String " ];
Font drawfont = New Font ( " @ 文 " , 16f );
Solidbrush drawbrush = New Solidbrush (color. White );
Float X = 20f;
Float Y = 20f;
Stringformat drawformat = New Stringformat ();
Drawformat. formatflags = Stringformatflags. directionvertical;
Bitmap bitmap = (Bitmap) bitmap. fromfile ( " F: \ golf.jpg " );
Graphics graphics = Graphics. fromimage (Bitmap );
Graphics. drawstring (drawstring, drawfont, drawbrush, X, Y, drawformat );
This . Response. contenttype = " Image/JPEG " ;
Bitmap. Save ( This . Response. outputstream, imageformat. JPEG );
}
: