Merge pull request #10143 from Pokechu22/png-compression-level

Add option for setting the PNG zlib compression level
This commit is contained in:
Léo Lam 2021-11-23 16:40:34 +01:00 committed by GitHub
commit aa5cb35c86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 125 additions and 30 deletions

View file

@ -91,7 +91,7 @@ bool WriteImage(const std::string& path, const ImagePixelData& image)
}
return Common::SavePNG(path, buffer.data(), Common::ImageByteFormat::RGBA, image.width,
image.height);
image.height, image.width * 4);
}
ImagePixelData Resize(ResizeMode mode, const ImagePixelData& src, u32 new_width, u32 new_height)