Image image = new Get the PropertyItems property from image. The code example displays the value of that property item. The second (index 1) property item in the list has Id 0x010F (equipment manufacturer) and Type 2 (ASCII-encoded byte array). The following code example reads and displays the seven pieces of metadata in the file FakePhoto.jpg. The formats indicated by the Type property values are shown in the following table: Numeric valueĪn array of Byte objects encoded as ASCIIĪn array of two Byte objects that represent a rational number The data type of the values in the array pointed to by the Value property. The length (in bytes) of the array of values pointed to by the Value property. The format of the values is determined by the Type property. ![]() Some values that can be assigned to Id are shown in the following table: Hexadecimal valueĪn array of values. IdĪ tag that identifies the metadata item. The PropertyItems property returns an array of PropertyItem objects.Ī PropertyItem object has the following four properties: Id, Value, Len, and Type. ![]() You can read the PropertyItems property of an Image object to retrieve all the metadata from a file. ![]() GDI+ stores an individual piece of metadata in a PropertyItem object. With GDI+, you can read existing metadata, and you can also write new metadata to image files. For example, a digital photograph might contain metadata that you can read to determine the make and model of the camera used to capture the image. Some image files contain metadata that you can read to determine features of the image.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |