Latest Tutorials ...

Save geometry data to ESRI shape(SHP) files
Save geometry data to ESRI shape(SHP)...
Load and display vector data like ESRI Shape files or DGN, DXF files
Load and display vector data like ESR...
Let the user edit existing geometry objects
Let the user edit existing geometry o...
Let the user draw new geometry objects like Polygons, Lines, Points
Let the user draw new geometry object...
Viewing pictures in a viewer control designed for scrolling, zooming, panning
Viewing pictures in a viewer control ...
Handling Exif and IPTC image tags
...
Extract all pictures of a page
...
Generate PDF documents containing text and imagedata
Generate PDF documents containing tex...
Convert between different image formats
Convert between different image forma...
Download THBImage image and vector viewing and processing SDK
Download THBImage image and vector viewing and processing SDK

THBImage Viewer is a small and fast raster picture and vector data viewer.
THBImage Viewer is a small and fast raster picture and vector data viewer.

Handling Exif and IPTC image tags

To create a new Exif object

Dim Exif As New THBExif

Load the exif and iptc data from an existing jpeg or tif file.

Exif.LoadMetadata strCurrentFile

Let’s get the exif tags

Dim ar As THBArrayString
Set ar = Exif.ExifGet

Add a new entry, attention this may create duplicate entries, remove the existing entry before.

Exif.ExifAdd "Image.Software", "THBImage", thbetAscii
Exif.ExifAdd "Image.Artist", "Donald Duck", thbetAscii

Delete entries.

Exif.ExifDelete "Image.Artist"

Edit existing values.

Exif.ExifSet "Image.Artist", "Donald Duck", thbetAscii

After modifying we save the changed metadata. either to a new file.

'Save to our new file
Exif.WriteMetadataToNewFile strOperationFile, False

Or just edit and update data. ‘Add things and write back Set Exif = New THBExif Exif.LoadMetadata strOperationFile Exif.ExifAdd “Image.Copyright”, “Added later”, thbetAscii Exif.WriteMetadata