Homework 4, CSE 481b, Winter 2007
Due Thursday, February 1, 6:00 pm
This assignment is optional!!!!!!!!
Pressure sensitive ink
This assignment is to create a pressure sensitive ink, where the color depends on the pressure. You should start with
the Real Time Stylus sample from the 1.7 SDK and modify the custom renderer to allow color to be controled by pressure.
- You will need to run this program on a tablet pc with a digitizer that detects pressure. (The compaq tablet do not - so you will want to work with the Toshiba tablets).
- My recommendation is to start with the real time stylus plugin sample from the 1.7 SDK.
- If you want to do a little bit more - make the pen width also sensitive to pressure.
- A further extension is to add a static renderer to on paint - so that your ink refreshes properly. If you just render
on the Packet event (which is what you are to do), then if your stroke is over drawn - it is gone - so you need to add something to OnPaint to draw your stroke appropriately.
Feel free to alter the feature set as you see fit. There is no requirement to reproduce
the sample solution exactly.
Submission By the deadline, post a screenshot of your
application to cmprince@cs.