94 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

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...