carré
carré

Reputation: 3

Load PNG RGBA channels like interleaved JPG RGB channels

Can a PNG file's data be loaded in a certain order, say beginning with one RGBA channel, then the rest?

Perhaps similar to how JPG files can, sometimes using custom codecs, store their data as "scans" or "slices", that are loaded progressively, sequentially or interleaved, at first displaying black and white, followed by red, green, and finally blue.

It seems very unlikely, but can PNG files have a way of behaving like this?

References:

Upvotes: 0

Views: 202

Answers (1)

user3344003
user3344003

Reputation: 21627

PNG's equivalent to JPEG's progressive display is interlacing. Rather than interlacing lines, it interlaces pixels using a pattern the PNG standard calls ADAM7.

Upvotes: 0

Related Questions