I have a problem in preparing the ZPL command for printing the bitmap image on Zebra RZ400 300 dpi.
I have folling code snippet and i dont understand where i am extacly making a mistake.
var bitmapImagePath = @"C:\Sample.bmp";
//Gets the size of the bitmap file
long bitmapDataFileSize = new FileInfo(bitmapImageFilePath).Length;
byte[] bitmapData = System.IO.File.ReadAllBytes(bitmapImageFilePath);
string hexadecmimalString = BitConverter.toString(bitmapData).replace("-", string.empty);
double widthInBytes = Math.Ceiling(bitmapDataWidth / 8.0);
string str = "";
return str = "^XA^FO100,100^GFA," + //At Postion 100, 100
bitmapDataSize.ToString() + "," + // Total bytes of data to be placed
bitmapDataSize.ToString() + "," + // Total bytes of data to be placed, repeats as per API
widthInBytes + "," + //
hexadecmimalString + "^XZ";
Can you please suggest me where its going wrong? I could able to print with Multiplat form SDK API, but i am intrested only in ^GFA or ^GFB command which suits my requrirement.
Can any please suggest me to prepare the ^GF command that prints the any given image.