PeachImage

PeachImage.Formats.Png

PngTextEntry Class

A structured view over a TextRawMetadataProfile, covering PNG’s tEXt/zTXt/iTXt chunks. All three are captured under the single Text kind with Data holding UTF-8 bytes of keyword\0languageTag\0translatedKeyword\0text (language/translated-keyword empty for plain tEXt/zTXt; Latin-1 source text is re-encoded to UTF-8 for a single consistent representation regardless of which chunk type produced it).

public sealed class PngTextEntry

Inheritance System.Object → PngTextEntry

Properties  
Keyword The chunk’s keyword (e.g. “Title”, “Author”, “Description”).
LanguageTag The RFC 3066 language tag, if this came from an iTXt chunk with one set. Empty otherwise.
Text The text content.
TranslatedKeyword The keyword translated into LanguageTag, if this came from an iTXt chunk with one set. Empty otherwise.
WasCompressed Whether the source chunk stored its text zlib-compressed (zTXt, or compressed iTXt).
Methods  
TryParse(RawMetadataProfile, PngTextEntry) Attempts to parse profile as a PNG text entry.