Tablet PC InkPicture Control 
Author Message
 Tablet PC InkPicture Control

I am trying to use the InkPicture control to capture a
sketch and a signature (two uses).  I need to take
the "inked" image and save it as a graphics file (DIB,
BMP, JPG - anything, once saved I can convert to other
formats). How can I do this in VB6?  

Also (separate question), can the "ink" image be saved as
a string in VB6?

I've looked at the samples the the Tablet PC SDK CD, but
(1) they have very few VB6 examples, and (2) the don't
show this anyway.

Thanks
Ira



Wed, 01 Jun 2005 07:01:49 GMT  
 Tablet PC InkPicture Control
I've never heard of that control... but here's it's reference page.

InkPicture Control Reference
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tpcs...

--
Ken Halter - MS-MVP-VB - http://www.vbsight.com - Please keep it in the
groups..


Quote:
> I am trying to use the InkPicture control to capture a
> sketch and a signature (two uses).  I need to take
> the "inked" image and save it as a graphics file (DIB,
> BMP, JPG - anything, once saved I can convert to other
> formats). How can I do this in VB6?

> Also (separate question), can the "ink" image be saved as
> a string in VB6?

> I've looked at the samples the the Tablet PC SDK CD, but
> (1) they have very few VB6 examples, and (2) the don't
> show this anyway.

> Thanks
> Ira



Wed, 01 Jun 2005 07:22:19 GMT  
 Tablet PC InkPicture Control
Ira,

To save ink as an image, you can set the persistence format to IPF_GIF on
the call to save.  Your code should look something like this:

Dim SavedInk as Byte()
SavedInk = InkPicture1.Ink.Save(IPF_GIF)

To get your Ink saved as a string, just use the Base64 version of the
persistence format.  Here's another sample:

Dim SavedInk as String
SavedInk = InkPicture1.Ink.Save(IPF_Base64GIF)

Please post any more questions to
microsoft.public.windows.tabletpc.developer

Thanks,
Arin Goldberg
Program Manager
Tablet PC Platform
--
This posting is provided "AS IS" with no warranties, and confers no
rights. Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm


Quote:
> I am trying to use the InkPicture control to capture a
> sketch and a signature (two uses).  I need to take
> the "inked" image and save it as a graphics file (DIB,
> BMP, JPG - anything, once saved I can convert to other
> formats). How can I do this in VB6?

> Also (separate question), can the "ink" image be saved as
> a string in VB6?

> I've looked at the samples the the Tablet PC SDK CD, but
> (1) they have very few VB6 examples, and (2) the don't
> show this anyway.

> Thanks
> Ira



Wed, 01 Jun 2005 17:46:30 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Tablet PC / VB 6 and Windows Journal integration

2. Tablet PC / VB 6 and Windows Journal intergation

3. Develop Tablet PC application using VB6

4. Tablet PC user group?

5. Tablet PC sdk???

6. VB6+Tablet PC Edition

7. Develop Tablet PC application using VB6

8. How could I control a pc tablet from VB6?

9. How could I control a pc tablet from VB6?

10. Newbie : Pocket PC/Handheld PC/Palm PC

11. Tablets in Word

12. Graphic tablet OCX

 

 
Powered by phpBB® Forum Software