cancel
Showing results for 
Search instead for 
Did you mean: 

How to draw gauge tickmarks without image

WPrec
Associate II

Is it possible to draw the gauge tickmarks without using an image? I have to use some widgets (gauge, circular progress) layered one above the other and one image hides the image from beyond.

What's the best approach to do this (canvas, shapes, ...)? Is there any example how to do this?

2 REPLIES 2
cameronf
Senior

Do you have transparency in the images your using? I haven't used those widgets overlayed with each other before so don't know if something else in the implementation blocks out lower layers but in general overlaying images works if the top image has transparent sections.

WPrec
Associate II

In principle you are right. You can do this. But think about the tickmarks of a radial scale with changing beginning and end points?

You always have to generate new bitmaps, with transparencies!? And many bitmaps for low storage?

I think generating on the fly would be better.

As example take the "CircularProgress" widget and overlay it with a radial scale and a radial gauge.