Class IptcTagExtensions
- Namespace
- SixLabors.ImageSharp.Metadata.Profiles.Iptc
- Assembly
- SixLabors.ImageSharp.dll
Extension methods for IPTC tags.
public static class IptcTagExtensions
- Inheritance
-
IptcTagExtensions
- Inherited Members
Methods
IsDate(IptcTag)
Determines if the tag is a datetime tag which needs to be formatted as CCYYMMDD.
public static bool IsDate(this IptcTag tag)
Parameters
tag
IptcTagThe tag to check.
Returns
- bool
True, if its a datetime tag.
IsRepeatable(IptcTag)
Determines if the given tag can be repeated according to the specification.
public static bool IsRepeatable(this IptcTag tag)
Parameters
tag
IptcTagThe tag to check.
Returns
- bool
True, if the tag can occur multiple times.
IsTime(IptcTag)
Determines if the tag is a time tag which need to be formatted as HHMMSS±HHMM.
public static bool IsTime(this IptcTag tag)
Parameters
tag
IptcTagThe tag to check.
Returns
- bool
True, if its a time tag.
MaxLength(IptcTag)
Maximum length of the IPTC value with the given tag according to the specification.
public static int MaxLength(this IptcTag tag)
Parameters
tag
IptcTagThe tag to check the max length for.
Returns
- int
The maximum length.