VB.NET Examples

ChilkatHOMEAndroid™ASPVisual BasicVB.NETC#iOS (IPhone)Objective-CC++CMFCDelphiFoxProJavaPerl
PHP ExtensionPHP ActiveXPythonPowerShellRubySQL ServerVBScript

VB.NET Examples

Bounced Mail
Bz2
Character Encoding
CSV
Digital Certificates
Digital Signatures
Email
FTP
HTML Conversion
HTTP
IMAP
Encryption
MHT / HTML Email
POP3
PFX
RSA
S/MIME
SMTP
Socket
Spider
SSH
SSH Tunnel
SSH Key
SFTP
Tar Archive
Upload
XML
XMP
Zip Compression
Misc

More Examples...
Amazon S3
Email Object
DKIM / DomainKey
NTLM
FileAccess
RSS
Atom
Self-Extractor
Service
PPMD
Deflate
DH Key Exchange
DSA
Bzip2
LZW

Byte Array
VB.NET FTPS
System.IO

 

 

 

 

 

 

Add XMP MetaData to JPG or TIFF

Demonstrates how to add XMP metadata to a JPG or TIFF image that doesn't already have XMP metadata.

Download Chilkat .NET for 4.0 Framework

Download Chilkat .NET for 64-bit 4.0 Framework (x64)

Download Chilkat .NET for 2.0 / 3.5 Framework

Download Chilkat .NET for 64-bit 2.0 / 3.5 Framework (x64)

Download Chilkat .NET for 1.0 / 1.1 Framework

Dim xmp As New Chilkat.Xmp()

Dim success As Boolean

success = xmp.UnlockComponent("Anything for 30-day trial.")
If (success <> true) Then
    MsgBox(xmp.LastErrorText)
    Exit Sub
End If


Dim xml As Chilkat.Xml

'  The first step is to create a new XMP document, which is nothing
'  more than XML.  The NewXmp method returns an XML document with
'  the standard XMP boilerplate.
xml = xmp.NewXmp()

'  Add some properties...
success = xmp.AddSimpleStr(xml,"Iptc4xmpCore:Chilkat","Blah blah")
'  If you wish to view the XML, save it to a file and review it
'  with a text editor:
success = xml.SaveXml("newXmp.xml")
If (success <> true) Then
    MsgBox(xml.LastErrorText)
    Exit Sub
End If


'  To add the XMP to the JPG (or TIFF), simply load the JPG,
'  append the XMP, and save:
success = xmp.LoadAppFile("scream.jpg")
If (success <> true) Then
    MsgBox(xmp.LastErrorText)
    Exit Sub
End If

success = xmp.Append(xml)
If (success <> true) Then
    MsgBox(xmp.LastErrorText)
    Exit Sub
End If

success = xmp.SaveAppFile("screamOut.jpg")
If (success <> true) Then
    MsgBox(xmp.LastErrorText)
    Exit Sub
End If



 

© 2000-2012 Chilkat Software, Inc. All Rights Reserved.

Mail Component · XML Parser