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.

Printing From Websites Part 3

Hello Programmers!  I’m back again with my series on printing from within websites.  This time I’m going to talk about using a client program to print. 


The downside is that, until recently, you had to write a client program for every OS you wanted to support with your website.  There is still the possibility that you may want to do that, but there are now several options to serve this need.