Solved

Simple 2D Shape Drawing program

Posted on 2007-12-03
7
1,215 Views
Last Modified: 2010-04-21
I want to trace around wooden 2D shapes less than 4" square using a graphic tablet. I want to write a VB program to record the shape. Then calculate its dimensions height, width, centre point, longest diagonal.
0
Comment
Question by:optidoc
  • 3
  • 2
7 Comments
 
LVL 5

Expert Comment

by:Tertioptus
ID: 20396691
So what is your specific problem?   And is there a picture that your tracing on.
0
 
LVL 13

Expert Comment

by:Michael_D
ID: 20397418
I suggest starting from here  http://www.greenreaper.co.uk/#VBTablet

VBTablet is ActiveX control that would allow access to your graphic Tablet from VB application


0
 

Author Comment

by:optidoc
ID: 20403797
Thank you Michael D, VBTablet good place to start although I will need to take a few extra strong Guru tablets to understand the code!! Will get back to you in a while.....
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:optidoc
ID: 20409980
I looked at VBTablet and yes it will work but before I go down that route. I need to store the image as a bitmap. Then at a later date read in the shape  and find height,width and longest diagonal from the bitmap. So I was thinking of using VB drawmode in a simple way to make a bitmap and wonderd how to interrogate a simple 2D bitmap shape?
0
 
LVL 13

Accepted Solution

by:
Michael_D earned 500 total points
ID: 20591741
The author of the question said about my suggestion:
[quote]

I looked at VBTablet and yes it will work

[/quote]

I understand the VBtablet control is complex system but I cannot think of anything simpler in this case.
You anyway need some methods to interface with tablet and grab the image of the trace. all the rest is just a math

I think VB tablet does provide solution for 90% of the task  
0
 

Author Closing Comment

by:optidoc
ID: 31412369
Thank you for your help. I am still searching for a easier solution at the moment.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Added a column screws up code 5 47
scanning dentists xray (the small ones) 3 41
VB6 ListBox Question 4 30
Web Form VB.Net  import CSV 4 17
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

937 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now