Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1622
Digital Gauge text no longer black
posted

Hello,

I have created an ultra gauge with a few digital gauge's on it (with the text set to black).  The gauge works fine, but the problem is once I resize the gauge to a certain size (smaller), the text no longer appears black but more gray (making it a little hard to read the text when on a 'Control' color background).  I have a sample that shows the issue.  Please let me know how i can get it to you, and i will send it.  In the sample, resize the UC control on the main form to be bigger and you will see the digital gauge turn black, but make it small again and it goes back to a greyish color.  Please let me know if you have any questions.

How can I make it so the text appears darker (even when smaller).  I am open to any ideas such as using a different font for the digital gauge or making it bold (not sure how to do this).

-Chris

GaugeIssues.zip
Parents
  • 26458
    Verified Answer
    Offline posted

    Hi Chris,

    The issue you're observing is the result of anti-aliasing. A seven-segment digital gauge makes this even more obvious when the size of the gauge gets smaller, because the segments have triangular caps. There's no font that can be assigned to the digital gauge, because the segments are basically graphics paths. So what can be done about this? Well, not a whole lot, but you can try using these properties on the SegmentedDigitalGauge:

    SmoothingMode = None;  This turns off anti-aliasing, and while it will make the segments look darker, this comes at the cost of some possibly jagged edges.

    DigitSpacing = 0; Less space between digits = more room for segments to draw themselves.

    You can try using a 14-segment gauge. It's somewhat less prone to anti-aliasing effects, but may not be an option for you. Also, note that you would have to change the above properties only when your gauge is too small to be readable.

     

    Hope this helps you out.

    Max

Reply Children
No Data