原創(chuàng)|其它|編輯:郝浩|2012-12-27 10:05:58.000|閱讀 426 次
概述:對于提取圖片中的XMP元數(shù)據(jù),GdPicture.NET提供了一個簡便的方法,可快速實(shí)現(xiàn)XMP元數(shù)據(jù)的提取。
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
對于提取圖片中的XMP元數(shù)據(jù),GdPicture.NET 提供了一個簡便的方法,可快速實(shí)現(xiàn)XMP元數(shù)據(jù)的提取。
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim Imaging1 As New GdPicture.GdPictureImaging Call Imaging1.SetLicenseNumber("XXX") 'Please, replace XXXX by a valid demo or commercial license key. 'Go to //evaluation-gdpicture.com to get a 1 month trial key unlocking all features of the toolkit. Dim ImageID As Integer = Imaging1.CreateGdPictureImageFromFile("c:\test.tif") For i As Integer = 1 To Imaging1.TagCount(ImageID) If Imaging1.TagGetID(ImageID, i) = Tags.TagXMLPackets Then Dim arByte(0) As Byte Dim FileNumber As Integer = FreeFile() Imaging1.TagGetValueBytes(ImageID, i, arByte) FileOpen(FileNumber, "c:\data.xmp", OpenMode.Binary) FilePut(FileNumber, arByte) FileClose(FileNumber) End If Next i Imaging1.ReleaseGdPictureImage(ImageID) End Sub
本站文章除注明轉(zhuǎn)載外,均為本站原創(chuàng)或翻譯。歡迎任何形式的轉(zhuǎn)載,但請務(wù)必注明出處、不得修改原文相關(guān)鏈接,如果存在內(nèi)容上的異議請郵件反饋至chenjj@fc6vip.cn
文章轉(zhuǎn)載自:慧都控件網(wǎng)