The graph creation function of VS is really powerful!
Code
System. Drawing. Image IMG = system. Drawing. image. fromfile ("model.jpg ");
Graphics G = system. Drawing. Graphics. fromimage (IMG );
// Create Image Quality to eliminate sawtooth data
G. smoothingmode = smoothingmode. antialias;
G. textrenderinghint = system. Drawing. Text. textrenderinghint. antialiasgridfit;
// Draw something what you want
G. drawstring ("title", new font ("", 22, fontstyle. Bold), new solidbrush (color. fromargb (188,254, 6), 5, 15 );
G. drawstring (8.8), new font ("Times New Roman", 50, fontstyle. Bold), new solidbrush (color. Black), 55,145 );
G. drawstring ("online shop address:", new font ("", 13, fontstyle. Regular), new solidbrush (color. White), 5,305 );
G. drawstring ("validity period: To", new font ("", 13, fontstyle. Regular), new solidbrush (color. White), 285,305 );
G. Dispose ();
// Modify the Image Storage Quality
Encoder myencoder = encoder. quality;
Encoderparameters myencoderparameters = new encoderparameters (1 );
// Image Quality Grade
Encoderparameter myencoderparameter = new encoderparameter (myencoder, 100l );
Myencoderparameters. Param [0] = myencoderparameter;
// File type
Imagecodecinfo [] imagecodecinfo = imagecodecinfo. getimageencoders ();
// Save
IMG. Save (server. mappath (filename), imagecodecinfo [1], myencoderparameters );
Myencoderparameter. Dispose ();
Myencoderparameters. Dispose ();
Effect: