Now actually fix the scaling function.
This commit is contained in:
@@ -64,7 +64,7 @@ void PNGDumper::dumpImageSeries(const LayerData &layer)
|
||||
// advance the buffer;
|
||||
data += imagePixels;
|
||||
|
||||
clamp(buffer.begin(), buffer.end(), 0.0, 255.0);
|
||||
rescale(buffer.begin(), buffer.end(), 0.0, 255.0);
|
||||
|
||||
for (int y = 0; y < height; ++y) {
|
||||
for (int x = 0; x < width; ++x) {
|
||||
|
||||
Reference in New Issue
Block a user