Bitmap Printing in windows phone 8 -
how can print bitmap image using windows phone 8 (silverlight app).
i'm using bluetooth thermal printer (model bixolon spp-r200ii)
excuse me ,this first question in stack...
more information can provide if required.
sample code used print text.
stringbuilder str = new stringbuilder(); //printer initialization command str.append(string.concat((char)27, (char)64)); //font setting str.append(string.concat((char)08, (char)77, (char)0, (char)65)); //alignment str.append(string.concat((char)27, (char)97, (char)1)); //text print str.append('cash receipt'); //datawriter created socket private datawriter bluetoothwriter; bluetoothwriter.writestring(str.tostring()); await bluetoothwriter.storeasync(); await bluetoothwriter.flushasync();
this got printer manufacture
function: specify bit image mode
code: ascii esc * m nl nh d1...dk hex 1b 2a m nl nh d1...dk decimal 27 42 m nl nh d1...dk
range: m = 0, 1, 32, 33
0 ≤ nl ≤ 255
0 ≤ nh ≤ 3
0 ≤ d ≤ 255
k = nl + nh × 256 [in case of m = 0, 1]
k = (nl + nh × 256) × 3 [in case of m = 32, 33]
description: command specifies bit image mode m number of dots specified nl , nh.
• d specifies bit image data 1 printed data , 0 not printed.
• k denotes number of horizontal dots. dpi
Comments
Post a Comment