I need to print an graphical image using ESCPOS protocol. So far I have researched following commands available on my printer:
GS v 0 m xL xH yL yH d1 … dk
ESC * m nL nH d1…dk
Let's say I got following image where 0 and 1 represents a single pixel:
|||||
-- 00000
-- 01010
-- 01010
---00000
Which command I should use for this purpose?It is total unclear for me from documentations how to use these commands to print image and how printer reads my image and how I should pass that data. Command to print top first few lines of the image above with explanations of all parameters would be very helpful.
EDIT:
Regarding 1. - ESC/POS "Select bit-image mode" vs "Print raster bit image"