vb.net - Stylus pointing not working like it should while drawing on pocket pc -


i'm making signature application pocket pc. works when test emulator (mouse) works should when try test on device (stylus), line draw little bit off pointing too.

anybody got idea be? tried find solution on internet still nothing came up. personally, think isn't code pocket pc.. configuration or something...

my code:

picturebox1_mousedown:

 x_md = e.x  y_md = e.y 

picturebox1_mousemove:

 x_mm = e.x  y_mm = e.y  dim g graphics = graphics.fromimage(bit)  dim mypen pen = new pen(color.black, 2)  g.drawline(mypen, x_md, y_md, x_mm, y_mm)  picturebox1.image = bit  x_md = x_mm  y_md = y_mm 

x_md, y_md, x_mm, y_mm int16

king regards

you're drawing on image, mouse coordinates on picturebox. can either draw on picturebox or adjust coordinates x_mm, y_mm offset , relative scale of image.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -