On 18/06/2012 00:49, cal wrote:
<snip>
ubyte[] data = some data;
Image img = new Img!(Px.R8G8B8)(width, height, data);
Image? Img?
img.write("mypng.png");
It uses adaptive filtering, and should work with the pixel formats supported by
the image
class (except for the 16 bit ones I've just realised). I've only tested it on
images that
I have previously loaded in however.
Does it always take in a ubyte[], or does that depend on the bit depth?
Stewart, I used your makepng.d as a template for this, can I add you to the
author list?
<snip>
By all means.
I look forward to seeing what you've come up with.
Stewart.