| 87 | } |
| 88 | |
| 89 | bool savePng(BitmapConstSection<byte, 1> bitmap, const char *filename) { |
| 90 | bitmap.reorient(Y_DOWNWARD); |
| 91 | return pngSave(bitmap.pixels, bitmap.width, bitmap.height, bitmap.rowStride, PNG_COLOR_TYPE_GRAY, filename); |
| 92 | } |
| 93 | |
| 94 | bool savePng(BitmapConstSection<byte, 3> bitmap, const char *filename) { |
| 95 | bitmap.reorient(Y_DOWNWARD); |
no test coverage detected