/// <summary> /// 绘制线条 /// </summary> /// <param name="protocol">协议</param> /// <param name="y">线条起始点y坐标</param> public static IBluetoothPrinterProtocol DrawLine(this IBluetoothPrinterProtocol protocol, int y) => protocol.DrawLine(0, y, protocol.Width, y, 1, LineStyle.Full);
/// <summary> /// 绘制线条 /// </summary> /// <param name="protocol">协议</param> /// <param name="startX">线条起始点x坐标</param> /// <param name="startY">线条起始点y坐标</param> /// <param name="endX">线条结束点x坐标</param> /// <param name="endY">线条结束点y坐标</param> public static IBluetoothPrinterProtocol DrawLine(this IBluetoothPrinterProtocol protocol, int startX, int startY, int endX, int endY) => protocol.DrawLine(startX, startY, endX, endY, 1, LineStyle.Full);