Skip to main content
WPrec
Associate II
Mar 19, 2019 12:26 PM UTC
Question

How to draw gauge tickmarks without image

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?

This topic has been closed for replies.

2 replies

cameronf
Associate
Mar 19, 2019 6:18 PM UTC

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
WPrecAuthor
Associate II
Mar 20, 2019 8:07 AM UTC

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.