TbCommandSendBitmap constructor

TbCommandSendBitmap(
  1. int x,
  2. int y,
  3. int width,
  4. int height,
  5. Uint8List imageData, {
  6. TbBitmapMode mode = TbBitmapMode.OVERWRITE,
})

Implementation

TbCommandSendBitmap(int x, int y, int width, int height, Uint8List imageData, {TbBitmapMode mode = TbBitmapMode.OVERWRITE}) {
  String bytesStr = "${String.fromCharCodes(imageData)}";
  //outCommand = "BITMAP $x,$y,$width,$height,${mode.getValue()},${String.fromCharCodes(imageData)}\"\r\n";
  //outCommand = "BITMAP $x,$y,$width,$height,${mode.getValue()},${String.fromCharCodes(imageData)}";
  outCommand = "BITMAP $x,$y,$width,$height,${mode.getValue()},";

  print ("Out Command - $outCommand");
  print ( "- Image Size ${bytesStr.length}");
}