示例
using System;
using System.IO;
using System.Text;
using System.Threading.Tasks;
namespace Snippets
{
class MyLabel
{
public static void MainComm(string[] args)
{
byte[] download = PGL_Utilities.WindowsFont("TMP", 50, 0, 3, "Arial", "TestString");
Picutre picutre = new Picutre(new Point(0f, 0f), "TMP");
lbl.AddObject(picutre);
string str = lbl.ToString();
Console.WriteLine(str);
var comm = new UsbConnection();
comm.Open();
if (comm.Connected)
{
comm.Write(download);
comm.Write(Encoding.UTF8.GetBytes(str));
}
comm.Close();
}
}
}