Quote:
Originally Posted by Hitman
Excellent  that would allow the users to create "skins" with their preferred templates 
|
Only requirment is that the dials need to be circular in nature. .ie no odd shapes hanging out the sides, or overlapping of the dials themselves. The program does not know anything about the dial istelf other than its radius (dervied from the width of the graphic itself)
What this means is that if it has odd shapes hanging out the sides, the area you'll be able to grab it from will be the entire width of the graphic .ie clicking in blank space will be valid.
Initially, the program DID use pixel perfect tests.. but using .NET/GDI+ it was considerably slower. I actally made a version with the Is-Was wheels.. with the ship nose and tail hanging out the sides of the bottom wheell... and it had the transparent Persicope dial ontop.. but it was considerably slower in response. So i scrapped it and went with a radius based appraoch.
Scaling and rotating high-res images in realtime is not what GDI+ is good at. Using C++/DirectX would cancel this performance problem out however.