png_set_text
Name
png_set_text -- stores information for image comments
Synopsis
void
png_set_text
(png_structp
png_ptr, png_infop
info_ptr, png_textp
text_ptr, int
num_text);
Description
png_set_text() shall store information
for image comments given in text_ptr to
info_ptr. text_ptr
is an array of size num_text of
png_text structures whose member fields include:
compression | | type of compression used on text. Valid values are:
PNG_TEXT_COMPRESSION_NONE | PNG_TEXT_COMPRESSION_zTXt | PNG_ITXT_COMPRESSION_NONE | PNG_ITXT_COMPRESSION_zTXt |
|
key | | keyword for comment. Must contain 1-79 characters. |
text | | text comment for current keyword. May be empty. |
text_length | | length of text string after decompression. 0 for iTXt. |