Hallo,
hier am besten mal mein Code:
C#-Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13:
| string strUhrzeit = DateTime.Now.Hour + ":" + DateTime.Now.Minute + ":" + DateTime.Now.Second; System.Drawing.Font drawFont = new System.Drawing.Font("Arial", 22, FontStyle.Bold); SolidBrush drawBrush = new SolidBrush(Color.Black); Bitmap bmp = (Bitmap)pct_preview.Image; int intX_POSI = bmp.Width - 70; int intY_POSI = bmp.Height - 20;
PointF drawPoint = new Point(intX_POSI, intY_POSI); e.Graphics.DrawString(strUhrzeit, drawFont, drawBrush, drawPoint); |
Also ich hab mir damit wunderbar die Uhrzeit auf mein Bild gezeichnet, an die untere rechte Ecke. Doch diese Zeichnung ist ja auf diese "Leinwand" vor der PictureBox gemalt. Ich möchte aber, dass das gezeichnete auf der Bitmap ist, so dass ich das Bild auch abspeichern könnte, und die gezeichnete Uhrzeit mit drauf ist. Wie bekomm ich das hin?
Danke euch
Gruß : )