PNG image en- and de-coders.. 2020 update
karabutaworld at gmail.com
Wed Aug 12 21:59:20 UTC 2020
On Tuesday, 11 August 2020 at 18:29:28 UTC, Andy Balba wrote:
> Found this 2012 Forum post :
> and thought that D-folks interested in this topic may find an
> "update" helpful.
Recommended to someone and it was well liked. Thanks for doing
It seems getting image dimensions for .gif files isn't supported
though. Or is it that .gif files aren't supported at all?
> // format specific functions
> PNG_Header hdr = read_png_header("peruna.png");
> IFImage i3 = read_jpeg("porkkana.jpg");
> write_tga("porkkana.tga", i3.w, i3.h, i3.pixels);
More information about the Digitalmars-d