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.
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.
Last Post: 10-26-2002, 01:30 AM
By Anthony Citrano in forum vb.announcements
Last Post: 04-16-2002, 09:25 PM
By Richard Curzon in forum .NET
Last Post: 07-21-2001, 03:32 PM
By Mark Burns in forum .NET
Last Post: 02-09-2001, 01:18 PM
By Esmond Hart in forum .NET
Last Post: 01-29-2001, 07:44 PM
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center