TiffTagAddVariant

This method adds a new TIFF tag of type variant to the image object.

Syntax

TiffTagAddVariant (TagId As Long, TagType As CROTiffTagType, Value As Variant)
Parameter Description

TagId

The Id of the new tag must be in the range of valid user tags for TIFF files.

Possible values

32768 to 65535

Additionally, the printer tag is allowed, which is defined as 337.

TagType

Type of the new tag.

Possible values

  • CROTiffTagASCII
  • CROTiffTagByte
  • CROTiffTagDouble
  • CROTiffTagFloat
  • CROTiffTagLong
  • CROTiffTagShort
  • CROTiffTagSByte
  • CROTiffTagSLong
  • CROTiffTagSShort

Value

Value of the new TIFF tag. The type of this value must correspond to the specified tag type.

Note: The method does not save the changes to the image file. To save the file, call a save method.