1 / 16

Tablet PC Programming: Basics

Tablet PC Programming: Basics. CSE481B Lecture 3 Craig Prince Jan 11. 2006. Outline. Tablet PC UI Controls Ink and Strokes Ink Events Ink Data Format DrawingAttributes Class Ink Transformations Measuring and Modifying Strokes. Resources. Tablet PC SDK Latest v1.7

mjodi
Download Presentation

Tablet PC Programming: Basics

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Tablet PC Programming: Basics CSE481B Lecture 3 Craig Prince Jan 11. 2006

  2. Outline • Tablet PC UI Controls • Ink and Strokes • Ink Events • Ink Data Format • DrawingAttributes Class • Ink Transformations • Measuring and Modifying Strokes

  3. Resources • Tablet PC SDK • Latest v1.7 • Installed on all machines • Download from MS • The SDK Help is Useful • “Building Tablet PC Applications” • Covers the basics • Search the Web

  4. 4 UI Controls • InkCollector – Basic • InkOverlay – Adds selection, erasing, highlighting, etc. • InkPicture – Draw ink on a picture • InkEdit – Ink turned straight into text

  5. Example

  6. Ink and Strokes InkOverlay Ink Stroke Stroke Stroke Ink.Strokes InkOverlay.Selection

  7. Ink Events • Ink – InkAdded, InkDeleted • InkCollector – All sorts of Events • InkOverlay – All sorts of Events + More Easiest to explore them from the SDK docs

  8. Example

  9. Ink Data Format • Series of Packets: Stroke.GetPacketData() • X, Y, Pressure, etc. Example

  10. DrawingAttributes See SDK

  11. Ink Transformations • Renderer class • Does all the drawing of ink, uses the DrawingAttributes • Draw() is most important • Calling directly allows some neat effects

  12. Aside: Two helpful functions • InkSpaceToPixel • PixelToInkSpace

  13. Ink Transformations • Set/GetObjectTransform • Set/GetViewTransform • Object  View  World Let’s see an example

  14. Example

  15. Measuring and Modifying Strokes • GetBoundingBox • HitTest (Rectangle, circle, or blob) • NearestPoint (both Ink and Stroke) • Strokes.Split(float) • Clip (Ink, Strokes, and Stroke)

  16. Coming Next • Ink Recognition • Text Recognition • Gestures • Custom Recognizers • Real Time Stylus • Few Differences • When to Use

More Related