Contains the keys associated with the list of values (PNG_TextValues property).
Note: ◼PNG_TextKeys and PNG_TextValues must contain the same number of entries. Only uncompressed text is supported ◼PNG_TextKeys works best with IELib ◼The maximum length for a PNG text key is 79 printable Latin characters (ISO 8859-1). There is no explicit maximum length for text values
// Add author and other text info to a PNG file ImageEnView1.IO.Params.PNG_TextKeys.Add('Author'); ImageEnView1.IO.Params.PNG_TextValues.Add('Letizia'); ImageEnView1.IO.Params.PNG_TextKeys.Add('Subject'); ImageEnView1.IO.Params.PNG_TextValues.Add('Colosseo'); ImageEnView1.IO.SaveToFile('D:\output.png');
// Find the "Author" text key idx := ImageEnView1.IO.Params.PNG_TextKeys.IndexOf('Author'); if idx >= 0 then ShowMessage( 'Author is ' + ImageEnView1.IO.Params.PNG_TextValues[idx] ) else ShowMessage( 'Author is Unknown' );
// read all text info from a PNG for i := 0 to ImageEnView1.IO.Params.PNG_TextKeys.Count - 1 do begin key := ImageEnView1.IO.Params.PNG_TextKeys[i]; value := ImageEnView1.IO.Params.PNG_TextValues[i]; Memo1.Lines.Add( key + ': ' + value ); end;