Smoothed rounded corners in Windows CE 6.0

I want to display a smooth rounded rectangle on an ARM device running Windows CE 6.0.

I started with RoundRect , but the result was jagged, since Windows CE uses GDI and does not support GDI + , as Windows Mobile 5+ does. My current workaround was to create a large number of small bitmap images, but since the rest of the GUI design has transparency, gradient fills, and variable width borders, this solution means creating and managing a large number of permutations of these bitmap images.

Is there a way to get GDI + -like graphic primitives in Windows CE? I have control over my Windows CE image, so I can build anything if needed.

+2
source share
2 answers

I did not know that CF support for this is so bad. Is there a way to incorporate GDI + into the system? I do not have Platform Builder, so I can’t take a look at myself.

I am using OpenVG. This is very fast if your device supports it at the hardware level (as it seems to many OpenGL ES 2.0 devices), and there are software implementations that should also work fast enough (on the desktop I use AmanithVG SRE for emulation). However, I did not try to use AmanithVG SRE on my CE device, and I think you need to contact them to get the binary (the Desktop binary is available on the website). If your device has a PowerVR chip (for example, TI OMAP35x has one), PowerVR delivers OpenVG hardware rendering (although you still need one for the desktop).

OpenVG has an ugly API, like all OpenXX APIs (that is, if you are used to .NET BCL), but they are fine, and OpenVG is really easy to translate to .NET, because although it is procedural, more or less object oriented, and they turned all of their constants into enumerations, not defined.

+1
source

Windows Mobile 6 Professional includes a limited version of gdiplus.dll.

0
source

Source: https://habr.com/ru/post/1337796/


All Articles