Visual C++ Examples

ChilkatHOMEASPVisual BasicVB.NETC#Visual C++CMFCDelphiFoxProJavaPerlPHPPythonRubySQL ServerVBScript



Visual C++ Examples

CkString
Byte Array
Bounced Mail
Character Encoding
Digital Certificates
Digital Signatures
Email
Encryption
FTP
HTML-to-XML
HTTP
IMAP
MHT / HTML Email
RSA Encryption
S/MIME
Socket
Spider
Tar
Upload
XML
XMP
Zip Compression


More Examples...
Email Object
POP3
SMTP
RSS
Atom
Self-Extractor

Unreleased...
Service
PPMD
Deflate
Bzip2
LZW
Bz2
DH Key Exchange
DSA
Icon

 

 

 

 

 

 

 

 

Remove One XMP from Image File with Multiple Embedded XMPs

C++ XMP sample code to remove individual XMP docs from an image file containing multiple XMPs

void XmpRemoveOneXmp(void)
    {
    // In the case where a JPG or TIFF image file contains multiple
    // XMP documents, it is possible to remove one or more by index
    CkXmp xmp;
    xmp.UnlockComponent("anything for 30-day trial");

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

    // Assume the JPG has 2 or more embedded XMPs.

    // Remove the 2nd XMP document (the 1st XMP doc is at index 0).
    xmp.RemoveEmbedded(1);

    xmp.SaveAppFile("out.jpg");
    
    return;
    }

 

 

 

Need a specific example? Send a request to support@chilkatsoft.com

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

Mail Component · .NET Mail Component · XML Parser