Hi,
Anyone know how to add Tags to JPG files using C# or VB.NET in Vista???
I have a XP dev box so I want to do dev it from there?
Malcolm
Are you meaning adding texts onto image and saving them?
If so, drawstring function does that under GDI+
Sample code i've done:
-Just change <your_text> string:-
Dim mypicture As Bitmap
mypicture = New Bitmap(PictureBox1.Image)
Dim mygraph As Graphics
mygraph = Graphics.FromImage(mypicture)
'create a new brush with a single, solid color
Dim myBrush As New SolidBrush(Color.Red)
'create a new basic font. you can mess around and make it cooler
Dim f As Font = New Font(Font.Bold, 20)
'draw the string onto the form.
' Location is 100(x), 33(y), you may change
mygraph.DrawString("<your_text>", New Font("Arial", 18,
FontStyle.Regular), Brushes.Red, 0, 10)
PictureBox1.Image = mypicture
mygraph.Dispose()
Then save using:
PictureBox1.Image.Save(<path>)
I was searching this code with no help in group, other external sites
provides similar solutions for that purpose.
Hope this helps.