Skip to main content
WPrec
Associate II
March 19, 2019
Question

How to draw gauge tickmarks without image

  • March 19, 2019
  • 2 replies
  • 710 views

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
March 19, 2019

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
March 20, 2019

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.