Bestiary pictures the right way up (PNG export writes rows bottom up)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0606c1f994
commit
bbab2b5a58
105 files changed
+2
-1
No files matched your search
+2
-1
@@ -2007,7 +2007,8 @@ mod doc_images {
|
||||
for y in 0..h {
|
||||
for x in 0..w {
|
||||
let p = img.get_pixel(src.x as u32 + x / scale, src.y as u32 + y / scale);
|
||||
out.set_pixel(x, y, p);
|
||||
// export_png writes the rows bottom up: store them flipped
|
||||
out.set_pixel(x, h - 1 - y, p);
|
||||
}
|
||||
}
|
||||
out.export_png(path);
|
||||
|
||||
Reference in new issue
Block a user