VB.NET Renaming File and Retagging / Edit Image MetaData / Meta Tags

后端 未结 2 486
野趣味
野趣味 2021-01-06 22:35

Clarifiration:

How do I Edit and Save Image EXIF / Metadata / FileInfo without using an external DLL?

Project:

相关标签:
2条回答
  • 2021-01-06 23:09

    EDIT: This isn't a dll library, you just copy the source code to your project and create a new instance of the object.

    I use a class called ExifWorks, found here: http://www.codeproject.com/KB/vb/exif_reader.aspx?msg=1813077 It's usage is simple,

    Dim EX As New ExifWorks(bitmap)
    Dim dateStr As String = EX.DateTimeOriginal
    Dim description As String = EX.Description
    EX.SetPropertyString(ExifWorks.TagNames.ImageDescription, "my description")
    

    This is the easiest way I've found so far. Let me know if you run into any problems.

    0 讨论(0)
  • 2021-01-06 23:12
        Dim MyValue As String = ""
    
        For Each item In PictureBox1.Image.PropertyIdList
            MyValue = System.Text.Encoding.UTF8.GetString(PictureBox1.Image.GetPropertyItem(item).Value)
            ListBox1.Items.Add(MyValue)
        Next
    
    0 讨论(0)
提交回复
热议问题