ImageEn, unit iexBitmaps

TIOParams.PNG_Chunks

TIOParams.PNG_Chunks


Declaration

property PNG_Chunks: TStringList;


Description

Returns any text chunks found in the PNG file that are not recognized.
ImageEn will automatically recognize and process chunks such as EXIF, XMP and ICC. Any other text chunks ("iTXt", "zTXt" or "tEXt") will be added to PNG_Chunks in the format:
Keyword=Text

Note: This value is not used when saving a PNG file


Example

// read all text info from a PNG
for i := 0 to ImageEnView1.IO.Params.PNG_Chunks.Count - 1 do
  Memo1.Lines.Add( ImageEnView1.IO.Params.PNG_Chunks[i] );

{
Example Output:

comment=File written by Adobe Photoshop 4.0
date:create=2011-01-09T08:40:05-05:00
date:modify=2011-01-09T08:40:05-05:00
jpeg=colorspace: 2
jpeg=sampling-factor: 1x1,1x1,1x1
}