基本信息我可以的 但是把照片放进去我没搞成功 下面是放你的基本信息 供 参考!
protected void Page_Load(object sender, EventArgs e)
{
gethua();
}
protected void gethua()
{
Random random = new Random();
Bitmap bt = new Bitmap(600,400,PixelFormat.Format24bppRgb);
Graphics g = Graphics.FromImage(bt);
Font fn = new Font("Tahoma",12,FontStyle.Bold);
g.Clear(Color.RoyalBlue);
g.DrawString("姓名:张三",fn,Brushes.White,new PointF(10,10));
g.DrawString("年龄:33", fn, Brushes.White, new PointF(10, 30));
g.DrawString("身份证:123456789", fn, Brushes.White, new PointF(10, 50));
for (int i = 0; i < 25; i++)
{
int x1 = random.Next(bt.Width);
int x2 = random.Next(bt.Width);
int y1 = random.Next(bt.Height);
int y2 = random.Next(bt.Height);
g.DrawLine(new Pen(Color.GreenYellow), x1, y1, x2, y2);
}
Response.ContentType = "image/Jpeg";
bt.Save(Response.OutputStream,ImageFormat.Jpeg);
}