125 views
in GUI Development by
I would like to show a Bitmap in 2 format, "small icons" and  "large icons".

I have to scale and to apply a mask to both formats. How can I do that? Can you help me?

Regards,

Marco

2 Answers

0 votes
by
Hi Marco,

there are many options to scale a bitmap. You can use two sets of icons (which requires more memory but results in best performance), you can use bitmaps and apply a warp operation or you can use SVGs...

It depends on the use case. If you provide more information, it might be easier to help you.

Best regards,

Manfred.
by
Hi Manfred,

I would like to scale and mask a bitmap at the same time, as FilterImage does, but it does not scale the bitmap.  As an example, the mask might be a filled Circle, a filled rounded rectangle and their negatives.

Regards,

Marco
0 votes
by
Hello Marco,

you will need to perform the scale and filter operation one after another with an intermediate bitmap to store the results between the both steps. Since scaling and filtering are both CPU and RAM intensive operations, I would recommend to use prepared bitmap resources with already scaled/filtered contents wherever it is possible.

Best regards

Paul Banach

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

...