Пример #1
0
 public GfxTabletPacket(InkEventArgs args) {
     this.type = EventType.Motion;
     this.x = (ushort) (args.Position.X * ushort.MaxValue);
     this.y = (ushort) (args.Position.Y * ushort.MaxValue);
     this.pressure = (args.Pressure.HasValue)
         ? (ushort) (args.Pressure.Value * short.MaxValue)
         : (ushort) short.MaxValue;
 }
Пример #2
0
 private void OnInkMove(DrawCanvas sender, InkEventArgs e) {
     networkController.SendInkMove(e);
 }
Пример #3
0
 public void SendInkMove(InkEventArgs args) {
     GfxTabletPacket packet = new GfxTabletPacket(args);
     SendPacket(packet);
 }