Xojo Conferences
MBSOct2019CologneDE

Platforms to show: All Mac Windows Linux Cross-Platform

/XMP/Dump XMP of image file
Function:
Required plugins for this example: MBS XMP Plugin
You find this example project in your Plugins Download as a Xojo project file within the examples folder: /XMP/Dump XMP of image file
This example is the version from Thu, 26th Mar 2014.
Project "Dump XMP of image file.rbp"
Class App Inherits Application
Const kEditClear = "&Löschen"
Const kFileQuit = "Beenden"
Const kFileQuitShortcut = ""
End Class
Class Window1 Inherits Window
EventHandler Sub Open() dim file as FolderItem = SpecialFolder.Desktop.Child("test.jpg") if not file.Exists then // please change file name above Break end if // use XMPFilesMBS to open file dim flags as integer = XMPFilesMBS.kOpenForRead dim xf as new XMPFilesMBS(file, XMPFilesMBS.kUnknownFile, flags) // now read the metadata dim xmp as new XMPMetaMBS dim PacketInfo as XMPPacketInfoMBS dim xmppacket as string if xf.GetXMP(xmp, xmppacket, PacketInfo) then // and write to test file dim outputfile as FolderItem = SpecialFolder.Desktop.Child("dump.txt") dim output as new MyXMPTextOutputMBS(outputfile) call xmp.DumpObject(output) Break end if End EventHandler
End Class
MenuBar MenuBar1
MenuItem FileMenu = "&Ablage"
MenuItem FileQuit = "#App.kFileQuit"
MenuItem EditMenu = "&Bearbeiten"
MenuItem EditUndo = "&Rückgängig"
MenuItem UntitledMenu1 = "-"
MenuItem EditCut = "&Ausschneiden"
MenuItem EditCopy = "&Kopieren"
MenuItem EditPaste = "&Einfügen"
MenuItem EditClear = "#App.kEditClear"
MenuItem UntitledMenu0 = "-"
MenuItem EditSelectAll = "&Alles auswählen"
End MenuBar
Class MyXMPTextOutputMBS Inherits XMPTextOutputMBS
EventHandler Function Output(text as string) As integer TextStream.Write text Return 0 // OK End EventHandler
Sub Constructor(file as FolderItem) self.file = file self.TextStream = TextOutputStream.Create(file) End Sub
Property TextStream As TextOutputStream
Property file As FolderItem
End Class
End Project

Feedback, Comments & Corrections

The items on this page are in the following plugins: MBS XMP Plugin.

The biggest plugin in space...




Links
MBS FileMaker Plugins