547 views
in GUI Development by
I'm new here
I would like to take a graph from a bitmap and fill it in ascending order.
I don't want to fill the individual segments.

 

 

I tried it like in the "CoffeMaschine" demo but it only works horizontally but not vertically

1 Answer

0 votes
by

Hello Sop,

welcome to our forum!

Assuming you have already a bitmap prepared, the simplest approach would be to display the bitmap in an Image view. Then you can adjust the width of the image at the runtime so more or less of the bitmap will be visible. If the Image view is smaller than the bitmap, the bitmap content is clipped automatically. To adjust the width of the Image view you modify its property Bounds, for example:

var int32 desiredWidth = ...

Image.Bounds.w = desiredWidth;

Please note that the Image view is per default configured to center the bitmap within its own area. For your application case you will thus need to align the bitmap at the left edge of the Image view. This is configured by Image view's property Alignment.

Does it help you further?

Best regards

Paul Banach

by
Thank you very much, it works.

Ask Embedded Wizard - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...