I was writing a program where I wanted a seekbar... but I was unhappy with the way it looked. I had the idea that I could make a 3D model in my CAD program, then render 101 highly detailed images.
The images would be SLIDER-0000.PNG through SLIDER-0100.PNG and could be called by code into the imageview.
There may be a better way to do it, in which case I'll learn something... or it may be something useful to the community... either way a win.
I understand that I could have made a single image and moved it... but the lighting and shadow actually changes based on position... and this method could also be used to create other 3D looking objects to interact with.
I place a SEEKBAR on the panel, then place the IMAGEVIEW over it, slightly larger. As the user interacts with the SEEKBAR, the image is treated like a puppet and follows.
Comments welcome... I am also creating other graphics like a wheel-slider (as you would see on musical keyboards), gauges, etc. If there is a better way... let me know that too!
The ZIP file with the project is here.
I also created another using a panel and a different set of images... the file is about 2 meg... I suppose I can regenerate all the images to a smaller size... each is currently 500x80 pixels so it can be scaled up very large. I may re-do them at 100x20 or so to cut back on memory.
Anyway... the vertical roller is here.
Thanks,
Jerry
The images would be SLIDER-0000.PNG through SLIDER-0100.PNG and could be called by code into the imageview.
There may be a better way to do it, in which case I'll learn something... or it may be something useful to the community... either way a win.
I understand that I could have made a single image and moved it... but the lighting and shadow actually changes based on position... and this method could also be used to create other 3D looking objects to interact with.
I place a SEEKBAR on the panel, then place the IMAGEVIEW over it, slightly larger. As the user interacts with the SEEKBAR, the image is treated like a puppet and follows.
Comments welcome... I am also creating other graphics like a wheel-slider (as you would see on musical keyboards), gauges, etc. If there is a better way... let me know that too!
The ZIP file with the project is here.
I also created another using a panel and a different set of images... the file is about 2 meg... I suppose I can regenerate all the images to a smaller size... each is currently 500x80 pixels so it can be scaled up very large. I may re-do them at 100x20 or so to cut back on memory.
Anyway... the vertical roller is here.
Thanks,
Jerry
Last edited: