問題描述
Apakah libpng memungkinkan untuk membaca tidak seluruh gambar ke memori? (Does libpng allow to read not the whole image to the memory)
I know that libJPEG
can read not the whole image, using jpeg_read_scanlines
.
Does libPNG
have such opportunity? I see only png_read_png
method.
‑‑‑‑‑
參考解法
方法 1:
Did you look at png_read_row()
and png_read_rows()
?
Bear in mind that this could have complications if the PNG is interlaced.