473,466 Members | 1,377 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Add tags to jpg files

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
Feb 7 '08 #1
1 1403
On Feb 7, 7:49 am, "Rotsey" <malcolm_sm...@RemoveThis.optusnet.com.au>
wrote:
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_textstring:-

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.
Feb 7 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Francis Hwang | last post by:
Hi, Maybe this is a newbie question, but: Is there a way to output an element's contents -- including contained nodes and free-form text -- without the containing tags? I can imagine that...
5
by: Donald Firesmith | last post by:
Are html tags allowed within meta tags? Specifically, if I have html tags within a <definition> tag within XML, can I use the definition as the content within the <meta content="description> tag? ...
1
by: bjam | last post by:
Hi, I am trying to create a sort of include file into my xsl files such that calling the following template will push these xml tags into my document such that the other xsl files can use these...
1
by: Sphere | last post by:
Hi I'd like to read out the ID3 V2 tags from my music files (like mp3, wma, ogg, ... is there a possibility to do that?
11
by: julien | last post by:
Hello, I posted this question on the NDoc-user mailing list, but it looks like a dead list (no messages for 10 days!). I'd like to use NDoc tags or custom tags inside methods like: void...
12
by: tshad | last post by:
I am not sure why I am getting this error: I have the following code I want to run from another include file that holds all my functions. functions.inc...
23
by: Big Bill | last post by:
http://www.promcars.co.uk/pages/bonnie.php I don't believe they should be there, can I take them out without stopping the includes from functioning? I'm the (hapless) optimiser on this one... I...
3
by: Paul Moore | last post by:
I'd like to write some scripts to analyze and manipulate my music files. The files themselves are in MP3 and FLAC format (mostly MP3, but FLAC where I ripped original CDs and wanted a lossless...
3
by: sebzzz | last post by:
Hi, I'm doing a little script with the help of the BeautifulSoup HTML parser and uTidyLib (HTML Tidy warper for python). Essentially what it does is fetch all the html files in a given...
1
by: Rotsey | last post by:
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
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.