print

ZPL Command With Image

Hello Team,

I facing some challenges in improving the printing quality, I have an application which takes the image and gives for the print.. to do that i ma following steps,
1. Capture Bitmap Image
2. Convert Bitmap into Grayscale bitmap
3. Convert Grayscale bitmap into ASCII HEX String
4. Embed HEX String in the ZPL command.. < XA ^MTD ^PW400 ^MUd,150,300^FO0,0^GFA {ASCII DATA} ^FS ^XZ>

But the quality of the image is not great, can you suggest with some pointers? Attaching image for the reference.
Thanks in advance.