Home > Software design >  GDI: Create Mountain Chart/Graph?
GDI: Create Mountain Chart/Graph?

Time:05-26

I can use Polyline() GDI function to plot values to create a graph but now I want the lower part of it filled in to create a mountain type chart. Is there something built-in to help create that? (I don't need gradient, but that would be a nice touch).

TIA!!

CodePudding user response:

For this diagram type you need to draw a Screenshot (standard DPI)

Note that on a HiDpi display device GDI rendering gets auto-scaled. This produces the following:

Screenshot (HiDpi non-DPI aware)

Looking closely you'll observe that the lines are wider than 1 device pixel. If you'd rather have a more crisp look, you can disable DPI virtualization by declaring the application as Screenshot (HiDpi DPI aware

  • Related