|
| | |||||||
| Tablet PC Developers Show off your work while discussing with others how to create ink enabled applications. |
| | LinkBack | Thread Tools |
| |||
| Erase in Point Erase mode Hi! I read on this subject, I just want to know if there's a new way to handle this. When I erase using the Point Erase mode, when I lift up my pen, some parts of the strokes are "unerased". Is there a way to correct this behaviour? Thanks VB |
| |||
| RE: Erase in Point Erase mode Hi Vincent, can you include some information about the context of your question? What type of application are writing (WPF, Winforms, Win32, etc.)? Which object are you using to collect and erase ink (InkCanvas, InkOverlay, etc.)? Any other relevant settings properties (DrawingAttributes etc.)? Thanks Stefan Wick http://blogs.msdn.com/swick/ "Vincent Bergeron" wrote: > Hi! > > I read on this subject, I just want to know if there's a new way to handle > this. > > When I erase using the Point Erase mode, when I lift up my pen, some parts > of the strokes are "unerased". > > Is there a way to correct this behaviour? > > Thanks > > VB > > > |
| |||
| Re: Erase in Point Erase mode Hi Stefan. > What type of application are writing (WPF, Winforms, Win32, etc.)? Which > object are you using to collect and erase ink (InkCanvas, InkOverlay, > etc.)? > Any other relevant settings properties (DrawingAttributes etc.)? I'm writing a Win32 application using the InkOverlay. Here's the DrawingAttributes for the Pen Width := 53; Height := 1; FitToCurve := False; IgnorePressure := False; AntiAliased := True; Transparency := 0; RasterOperation := IRO_CopyPen; PenTip := IPT_Ball; Color := clBlack; I tried the C# examples of the SDK and they're doing the same thing. But the Windows Journal Viewer do not. Maybe it's erasing the ink a different way... Thanks VB |
| |||
| Re: Erase in Point Erase mode Hi Vincent, you are correct Windows Journal is using a different, custom mechanism to do point-erasing. What you observed in InkOverlay is a performance optimization. The strokes collection does not get re-rendered until the pen (or mouse) goes up. Instead the eraser path simply gets cut out to visualize the post-erase result. Then when the pen/mouse goes up, the new stroke shapes get rendered properly, with smooth edges etc. There are two options for you to change this behavior: a) implement your own point-erase behavior without this perf optimization. The SDK sample "Ink Clipboard" contains a simple example for a custom point-erase implementation. b) listen to the "InkDeleted" event on InkOverlay's Ink object and then invalidate the affected region where the stroke segments got deleted. Also - just FYI - the InkCanvas object in WPF does not have this limitation when using its EraseByPoint EditingMode. Thanks, Stefan Wick http://blogs.msdn.com/swick "Vincent Bergeron" wrote: > Hi Stefan. > > > What type of application are writing (WPF, Winforms, Win32, etc.)? Which > > object are you using to collect and erase ink (InkCanvas, InkOverlay, > > etc.)? > > Any other relevant settings properties (DrawingAttributes etc.)? > > I'm writing a Win32 application using the InkOverlay. > > Here's the DrawingAttributes for the Pen > Width := 53; > Height := 1; > FitToCurve := False; > IgnorePressure := False; > AntiAliased := True; > Transparency := 0; > RasterOperation := IRO_CopyPen; > PenTip := IPT_Ball; > Color := clBlack; > > I tried the C# examples of the SDK and they're doing the same thing. But the > Windows Journal Viewer do not. Maybe it's erasing the ink a different way... > > Thanks > > VB > > > |
| Bookmarks |
| Thread Tools | |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Erase a CD | Jetz | Vista Hardware | 3 | 08-22-2007 06:10 AM |
| How to Erase A DVD-RW | Ken | Windows XP | 4 | 06-11-2007 02:00 PM |
| OneNote 2003 SP2 Pen Stuck in Erase Mode on M200 | DaveLessnau | Microsoft OneNote | 1 | 01-07-2007 12:18 AM |
| erase my posting | Bendgee | Windows XP | 11 | 01-04-2007 04:00 AM |
| Re: is there any way to erase a hd? | John Wunderlich | Windows XP | 12 | 01-04-2007 03:09 AM |
| New To Technology Questions? | Do You Need Help with Your Computer or Device? | Do You Need Help with this site? |