-
About making digital Clock in vb6
Hi,I want to make digital clock by using vb6. It's easy to draw three hands on the clock by using "Picture1.Line()-()".But my students want to draw these hands more nice-looking so they want to draw these using image tools.That's problem I met how to load the special images because these picturebox with one end fixed and the other end movable. Please give them some guide for it. thank you a lot.
xuliangchu
-
I found a sample project for rotating an image with anti-aliasing. It is located on Planet Source, here is the link: http://www.Planet-Source-Code.com/vb...11131&lngWId=1
It should be a good place to start.
-
And we have an example right here on DevX.
I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
Please use [Code]your code goes in here[/Code] tags when posting code.
Before posting your question, did you look here?
Got a question on Linux? Visit our Linux sister site.
Modifications Required For VB6 Apps To Work On Vista
-
If you read his post again, he is trying to draw hands on his clock, which means he is actually creating an Analog clock rather than a digital clock. So your DevX example, which only prints the time in a label, is not what he is looking for.
The sample I gave shows you how to rotate an image, like the hands of his clock, but to apply anti-aliasing to smooth out the edges for a better looking result rather than just redrawing the hands at a different angle. This way he can create as fancy a set of hands as he wants.
He could probably use a good routine to merge the hands with his clock face image. I didn't have an example handy for doing that, but I am sure they are out there and I can find one if he needs it.
Similar Threads
-
Replies: 246
Last Post: 10-26-2002, 12:30 AM
-
By Anthony Citrano in forum vb.announcements
Replies: 0
Last Post: 04-16-2002, 08:25 PM
-
By Richard Curzon in forum .NET
Replies: 3
Last Post: 07-21-2001, 02:32 PM
-
By Mark Burns in forum .NET
Replies: 24
Last Post: 02-09-2001, 12:18 PM
-
By Esmond Hart in forum .NET
Replies: 2
Last Post: 01-29-2001, 06:44 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks