void processDot(Dot dot) { // 필터링 된 필압 dot.force = mFilter.Filter(dot.force); // TODO: Drawing sample code if (dot.type == DotType.PEN_DOWN) { stroke = new Stroke(dot.sectionId, dot.ownerId, dot.noteId, dot.pageId); stroke.Add(dot); } else if (dot.type == DotType.PEN_MOVE) { stroke.Add(dot); } else if (dot.type == DotType.PEN_UP) { stroke.Add(dot); drawStroke(stroke); mFilter.Reset(); } this.BeginInvoke(new MethodInvoker(delegate() { if (dot.type == DotType.PEN_DOWN) { txtPacket.Text += Time.GetDateTime(dot.timeLong).ToString() + " "; txtPacket.Text += dot.ToString() + "\r\n"; txtPacket.SelectionStart = txtPacket.TextLength; txtPacket.ScrollToCaret(); } })); }
private void ProcessDot(Dot dot) { dot.Force = mFilter.Filter(dot.Force); // TODO: Drawing sample code if (dot.DotType == DotTypes.PEN_DOWN) { mStroke = new Stroke(dot.Section, dot.Owner, dot.Note, dot.Page); mStroke.Add(dot); printDot(dot); } else if (dot.DotType == DotTypes.PEN_MOVE) { mStroke.Add(dot); } else if (dot.DotType == DotTypes.PEN_UP) { mStroke.Add(dot); //DrawStroke(mStroke); mSig.Add(mStroke); ClearImage(); DrawSignature(); //Debug.WriteLine("Number of lines: " + mSig.Count); mFilter.Reset(); //saveImage(); } }
private void ProcessDot(Dot dot) { if (session != null) { dot.Force = mFilter.Filter(dot.Force); if (dot.DotType == DotTypes.PEN_DOWN) { mStroke = new Stroke(dot.Section, dot.Owner, dot.Note, dot.Page); mStroke.Add(dot); } else if (dot.DotType == DotTypes.PEN_MOVE) { mStroke.Add(dot); } else if (dot.DotType == DotTypes.PEN_UP) { mStroke.Add(dot); ProcessStroke(mStroke); DrawStroke(mStroke); mFilter.Reset(); } } }
private void ProcessDot(Dot dot) { // Filtered pressure dot.Force = mFilter.Filter(dot.Force); // TODO: Drawing sample code if (dot.DotType == DotTypes.PEN_DOWN) { mStroke = new Stroke(dot.Section, dot.Owner, dot.Note, dot.Page); mStroke.Add(dot); } else if (dot.DotType == DotTypes.PEN_MOVE) { mStroke.Add(dot); } else if (dot.DotType == DotTypes.PEN_UP) { mStroke.Add(dot); DrawStroke(mStroke); mFilter.Reset(); } }