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.