B.S.
B.S.

Reputation: 21726

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.

Upvotes: 1

Views: 263

Answers (1)

leonbloy
leonbloy

Reputation: 75906

Did you look at png_read_row() and png_read_rows()?

Bear in mind that this could have complications if the PNG is interlaced.

Upvotes: 2

Related Questions