Abudahim Posted April 8, 2004 Posted April 8, 2004 Public Sub DString(ByVal p As PictureBox) Dim imageRect As Rectangle = New Rectangle(0, 0, p.Image.Width, p.Image.Height) Dim G1 As Graphics G1 = p.CreateGraphics G1.DrawString("hola", New Font("Verdana", 24), Brushes.Black, p.Width / 2, p.Height / 2) End Sub this code draw string on the picture box it self . How I can draw the string to the image inside the picture box control and save the image with string . thank you .. Quote
*Experts* mutant Posted April 9, 2004 *Experts* Posted April 9, 2004 Create the graphics object using the Graphics.FromImage method and pass in the Image property of the Picturebox. Quote
Abudahim Posted April 10, 2004 Author Posted April 10, 2004 thank you Mr mutant fot respond. but can you give the Idea in a (code format) instead of explain it . thank you .. Quote
Leaders Iceplug Posted April 10, 2004 Leaders Posted April 10, 2004 Did you try it? It's exactly has he says: Create the graphics object using GFX = Graphics.FromImage() and pass in the Image property of the picturebox GFX = Graphics.FromImage(PB.Image) Use this Graphics object to draw to the string. GFX.DrawString(...) Quote Iceplug, USN One of my coworkers thinks that I believe that drawing bullets is the most efficient way of drawing bullets. Whatever!!! :-(
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.