Tag: 斑马条纹

准备ZPL命令以打印单色铬位图图像

我在准备用于在Zebra RZ400 300 dpi上打印位图图像的ZPL命令时遇到问题。 我有folling代码片段,我不明白我在哪里犯了错误。 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 […]