Dynamic Bitmap Background Transparency Implementation
Hi,
I would like to capture a TextArea's content and use it with TextureMapper for scaling animation and a blurry filter effect on the bitmap data.
However, there is noise for the TextArea background in HW, but the simulator result is perfect.
The reasons for using TextureMapper with Bitmap Data:
- the TextArea content will be updated
- the screen background will be updated
- filter effect function will be applied to the TextArea's content
- Able to implement the scaling & fade animation
How to create a Bitmap Data with Font/image's content without a noisy background?
----------------------------------------------------------------------------
STM32U5G9-DK Result (noise for the Background):
Simulator Result (expected):
----------------------------------------------------------------------------
The Dynamic Bitmap creation (Reference to advanceAnimationContainer.cpp in Text Animation Demo):
TestFont1Bitmap = Bitmap::dynamicBitmapCreate(Container.getWidth(), Container.getHeight(), Bitmap::ARGB8888);
touchgfx_printf("TestFont1Bitmap %d \n", TestFont1Bitmap);
if (TestFont1Bitmap != BITMAP_INVALID)
{
FontTM.setBitmap(TestFont1Bitmap);
FontTM.setPosition(50, 50, Container.getWidth(), Container.getHeight());
FontTM.setBitmapPosition(0, 0);
Container.setCacheBitmap(TestFont1Bitmap);
Container.enableCachedMode(true);
Container.updateCache();
Container.setAlpha(0);
FontTM.setupAnimation(AnimationTextureMapper::SCALE, 0.8f, 62, 0, EasingEquations::linearEaseInOut);
FontTM.startAnimation();
}---------------------------------------------------------------------------------------------------------
Please feel free to download the project for your testing.
