LUT work, image bugfixes

This commit is contained in:
Ian Gulliver
2017-08-07 04:32:01 +00:00
parent fc59669eaa
commit 89a54867f3
5 changed files with 109 additions and 6 deletions

View File

@@ -76,7 +76,7 @@ std::string Image<X, Y>::ToPng() {
assert(info_ptr);
png_set_write_fn(png_ptr, &ret, &WriteCallback, nullptr);
png_set_IHDR(png_ptr, info_ptr, X / 2, Y / 2,
png_set_IHDR(png_ptr, info_ptr, X, Y,
16, PNG_COLOR_TYPE_RGB, PNG_INTERLACE_NONE,
PNG_COMPRESSION_TYPE_BASE, PNG_FILTER_TYPE_BASE);