如何编辑JPG文件标题,主题,注释和标签/关键字? - 跟进 [英] How do I edit JPG File Title, Subject, Comments, and Tags/Keywords? - Follow Up
问题描述
This question relates to this original forum post:
我正在寻求澄清答案的实施方式.我采用image.SetPropertyItem(0x0112)
的想法尝试访问我的照片中的某些属性.我的问题是属性写为 0x0112等... ,但是SetPropertyItem参数需要一个整数.我已经尝试将 0x0112 属性ID转换为整数,但是我实际上无法获得一个已知的属性来显示给我.
I am looking for clarification on the implementation of the answer here. I took the idea of image.SetPropertyItem(0x0112)
to try to access some properties in a photo of mine. My issue is that the properties are written as 0x0112 etc..., but the SetPropertyItem parameter calls for an integer. I have tried converting the 0x0112 property IDs into integers, but I have not been able to actually get a known property to show up for me.
这很简单,但是让我陷于困境.任何澄清都将对我有很大帮助.我一直在尝试使用读取并最终向我的照片添加属性.
This is trival but has me stuck. Any clarification would be great to help me along the way. I have been trying to use the IDs from this MSDN site to read and eventually add properties to my photos.
推荐答案
以下是如何对PropertyItem使用exif属性
Here's how to use exif properties for a PropertyItem
Public Enum EXIFProperty
Title = 40091
Author = 40093
Keywords = 40094
Comments = 40092
End Enum
Dim exifProperty As EXIFProperty
Dim propertyItem As PropertyItem
propertyItem.Id = CInt(exifProperty.Title)
这篇关于如何编辑JPG文件标题,主题,注释和标签/关键字? - 跟进的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!