Visual C++ Examples

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

C++ Examples

CkString
Byte Array
Bounced Mail
Bz2
Character Encoding
CSV
DH Key Exchange
DKIM/DomainKeys
Digital Certificates
Digital Signatures
DSA
Email
Email Object
Encryption
FTP
HTML Conversion
HTTP
IMAP
MHT / HTML Email
POP3
RSA
S/MIME
SMTP
Socket
Spider
SSH Key
SSH
SSH Tunnel
SFTP
Tar
Upload
XML
XMP
Zip Compression


More Examples...
Amazon S3
NTLM
FileAccess
RSS
Atom
Self-Extractor
Service
PPMD
Deflate
Bzip2
LZW

 

 

 

 

 

 

 

 

Add XMP MetaData to JPG or TIF

Downloads:

MS Windows Visual C/C++ Libraries
Linux/CentOS C/C++ Libraries
MAC OS X C/C++ Libraries
Solaris C/C++ Libraries
C++ Builder Libraries

C++ XMP example showing how to add XMP metadata to a JPG or TIFF that does not yet have XMP metadata embedded.

void AppendXmp(void)
    {
    // Adds XMP metadata to a JPG or TIFF that does not yet contain
    // embedded XMP metadata.
    CkXmp xmp;
    xmp.UnlockComponent("anything for 30-day trial");

    bool success = xmp.LoadAppFile("scream.jpg");
    if (!success)
	{
	xmp.SaveLastError("lastError.txt");
	return;
	}

    // Intialize a new XMP metadata document.
    CkXml xml;
    xmp.NewXmp(xml);

    // Add some properties:
    // <exif:PixelXDimension>432</exif:PixelXDimension>
    // <exif:PixelYDimension>288</exif:PixelYDimension>

    xmp.AddSimpleInt(xml,"exif:PixelXDimension",432);
    xmp.AddSimpleInt(xml,"exif:PixelYDimension",288);

    // Append it and save the JPG.  The "out.jpg" file now contains XMP metadata.
    xmp.Append(xml);
    xmp.SaveAppFile("out.jpg");

    // Save the XMP to an XML file so we can see what was embedded.
    xml.SaveXml("newXmp.xml");
    
    return;
    }

 

 

 

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

Mail Component · .NET Mail Component · XML Parser