Loading metadata from XMP

Discussions about annotation support.
Post Reply
Charmees
Posts: 3
Joined: Mon Dec 23, 2013 10:34 pm

Loading metadata from XMP

Post by Charmees » Tue Jan 07, 2014 12:56 pm

Is it possible to load metadata from XMP file.

I have seen loading metadata from other files, that have XMP tags inside a file.

Code: Select all

ImageID = oGdPictureImaging.CreateGdPictureImageFromFile("c:\002.tif")
        oAnnotationManager.InitFromGdPictureImage(ImageID)
        oAnnotationManager.LoadAnnotationsFromXMP(annotStream)

But, can I load metadata directly from XMP?

Cedric
Posts: 263
Joined: Sun Sep 02, 2012 7:30 pm

Re: Loading metadata from XMP

Post by Cedric » Tue Jan 07, 2014 1:35 pm

Hi,

I don't understand what your question is, loading metadata from an XMP file is done by using the LoadAnnotationsFromXMP method.
This method has two overloads, one accepts a stream (which is the one I see on your example) but the other accepts a string which is the path to the XMP file as documented here: http://guides.gdpicture.com/html/GdPict ... ring).html

Cheers!

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest