a bit of dox

This commit is contained in:
Adam D. Ruppe 2022-07-26 14:49:04 -04:00
parent 417a25d3c4
commit ed152c1dde
1 changed files with 4 additions and 2 deletions

6
png.d
View File

@ -476,8 +476,10 @@ struct PNG {
bool replaceChunk (Chunk* chk) { return insertChunk(chk, true); } bool replaceChunk (Chunk* chk) { return insertChunk(chk, true); }
} }
// this is just like writePng(filename, pngFromImage(image)), but it manages /++
// is own memory and writes straight to the file instead of using intermediate buffers that might not get gc'd right this is just like writePng(filename, pngFromImage(image)), but it manages
its own memory and writes straight to the file instead of using intermediate buffers that might not get gc'd right
+/
void writeImageToPngFile(in char[] filename, TrueColorImage image) { void writeImageToPngFile(in char[] filename, TrueColorImage image) {
PNG* png; PNG* png;
ubyte[] com; ubyte[] com;