I am trying to understand the basics behind Pixbuf
and its factory methods new_from_data
and new_from_stream
.
new_from_data
requires a string of bytes containing the image data, and other information such as bits per sample, with and height of image.
What I don't understand is why new_from_stream
does not require those additional image information. Then, how can the Pixbuf know how to render the image new_from_stream
does not provide any additional information other than the Gio.InputStream
?