2025-11-02 5:40 PM - edited 2025-11-02 5:44 PM
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:
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.
Solved! Go to Solution.
2025-11-10 1:50 AM
@PeterVang Thank you so much. Now the Dynamic Bitmap issue is fixed.
2026-02-16 8:06 PM
Hello @TesterSAM
I posted another thread about your topic ,but I never have a solution .
Solved: How to create ARGB8888 dynamic bitmap on RGB565 pl... - STMicroelectronics Community
Can you do me a favor and test draw a circle on your cacheable container and see what happend? I believe your cacheable container is ARGB8888 and your ltdc display is RGB565?
Best Regard
Andy