Contenu | Menu

PNG read/write functions are available. For the moment:

If explicitely requested, the file is converted to the desired datatype (8bit, 16bit unsigned integer, or float); else, the most appropriate image structure is selected, in a mw_image container.

load.png
save.png

It's not freezed, and some parts are likely to be modified in the future, but the main design is there.

Adding a new image format requires 3 new functions, and 4 changes in switch statements; adding a new image structure requires 4 changes in switch statements (and the functions mw_load_xximage() and mw_save_xximage()).

So, we now have the bare tools to start working on the algorithms: