mirror of
https://github.com/javl/image2cpp.git
synced 2026-09-11 09:03:04 +00:00
Fix error with rotating vertical mode images. Add more tests for catching these.
This commit is contained in:
@@ -71,6 +71,20 @@ SCENARIOS = [
|
||||
("rotate_90", {"rotation": 90}, None),
|
||||
("rotate_180", {"rotation": 180}, None),
|
||||
("rotate_270", {"rotation": 270}, None),
|
||||
("rotate_90_vertical", {"drawMode": "vertical1bit", "rotation": 90}, None),
|
||||
("rotate_270_vertical", {"drawMode": "vertical1bit", "rotation": 270}, None),
|
||||
("rotate_180_vertical", {"drawMode": "vertical1bit", "rotation": 180}, None),
|
||||
("rotate_90_horizontal565", {"drawMode": "horizontal565", "rotation": 90}, None),
|
||||
("rotate_90_horizontal888", {"drawMode": "horizontal888", "rotation": 90}, None),
|
||||
("rotate_90_horizontal_alpha", {"drawMode": "horizontalAlpha", "rotation": 90}, None),
|
||||
(
|
||||
"rotate_90_flip_both",
|
||||
{"rotation": 90, "flipHorizontally": True, "flipVertically": True},
|
||||
None,
|
||||
),
|
||||
("rotate_270_flip_horizontal", {"rotation": 270, "flipHorizontally": True}, None),
|
||||
("rotate_90_resized", {"rotation": 90}, (48, 24)),
|
||||
("bitswap_vertical", {"drawMode": "vertical1bit", "bitswap": True}, None),
|
||||
("dithering_bayer", {"ditheringMode": 1}, None),
|
||||
("dithering_floyd_steinberg", {"ditheringMode": 2}, None),
|
||||
("dithering_atkinson", {"ditheringMode": 3}, None),
|
||||
|
||||
Reference in New Issue
Block a user