Technology Questions

Go Back   Technology Questions > Hardware Questions > Mobile Computers > Tablet PC > Tablet PC Software > Tablet PC Developers

Tablet PC Developers Show off your work while discussing with others how to create ink enabled applications.

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 11-28-2007, 12:10 PM
Vincent Bergeron
Newsgroup Contributor
 
Posts: n/a
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


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 11-28-2007, 12:10 PM
  #2 (permalink)  
Old 12-27-2007, 09:00 AM
Stefan Wick[MS]
Newsgroup Contributor
 
Posts: n/a
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
>
>
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 01-03-2008, 06:21 AM
Vincent Bergeron
Newsgroup Contributor
 
Posts: n/a
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


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4 (permalink)  
Old 01-03-2008, 09:31 PM
Stefan Wick[MS]
Newsgroup Contributor
 
Posts: n/a
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
>
>
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
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?

All times are GMT -8. The time now is 07:27 PM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0