MCPcopy Create free account
hub / github.com/MyGUI/mygui / savePng

Function savePng

MyGUIEngine/src/msdfgen/ext/save-png.cpp:89–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89bool 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
94bool savePng(BitmapConstSection<byte, 3> bitmap, const char *filename) {
95 bitmap.reorient(Y_DOWNWARD);

Callers 1

writeOutputFunction · 0.85

Calls 4

pngSaveFunction · 0.85
pixelFloatToByteFunction · 0.85
reorientMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected