Commit f519668d authored by Andrey's avatar Andrey

removed grayscale conversion.

parent e34e6d51
...@@ -341,10 +341,8 @@ class Printer { ...@@ -341,10 +341,8 @@ class Printer {
final Image imgResized = final Image imgResized =
copyResize(image, width: newWidth, height: image.height); copyResize(image, width: newWidth, height: image.height);
final Image imgGreyscale = grayscale(imgResized); invert(imgResized);
final Image imgInvert = invert(imgGreyscale); final bytes = imgResized.getBytes(format: Format.luminance);
final bytes = imgInvert.getBytes(format: Format.luminance);
final res = _convert1bit(bytes); final res = _convert1bit(bytes);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment