WPFandInk

WPFandInk - 1 Fall 2008 CAP 6938 Topics in Pen-Based User...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 1 Fall 2008 CAP 6938 Topics in Pen-Based User Interfaces Joseph J. LaViola Jr. Ink and Windows Presentation Foundation Lecture #4: Ink and WPF Joseph J. LaViola Jr. Fall 2008 Fall 2008 CAP 6938 Topics in Pen-based User Interfaces Joseph J. LaViola Jr. From Last Time Windows Presentation Foundation (WPF) integration of ink 2D Graphics 3D Graphics video and audio uses visual tree model component based XAML and C# code Important control InkCanvas 2 Fall 2008 CAP 6938 Topics in Pen-based User Interfaces Joseph J. LaViola Jr. Important Ink Components InkCanvas System.Windows.Controls receives and displays ink strokes starting point for ink applications stores ink in Strokes System.Windows.Ink Namespace contains classes to interact with and manipulate ink examples Stroke InkRecognizer InkAnalyzer GestureRecognizer Fall 2008 CAP 6938 Topics in Pen-based User Interfaces Joseph J. LaViola Jr. Dealing with InkCanvas InkCanvas collects Strokes Strokes contain StylusPoints StylusPoints contain X,Y, Pressure can also be converted into Geometry objects Strokes contain digitizer packets drawing attributes application-defined data InkCanvas has several stylus level events StrokeCollected, StylusInAirMove , 3 Fall 2008 CAP 6938 Topics in Pen-based User Interfaces Joseph J. LaViola Jr. Strokes and Geometry Strokes perform hit tests get geometry, bounds, Bezier points add properties transformations Geometry lose pressure and stylus specific data Within scope of 2D graphics API get area...
View Full Document

Page1 / 8

WPFandInk - 1 Fall 2008 CAP 6938 Topics in Pen-Based User...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online