cancel
Showing results for 
Search instead for 
Did you mean: 

How to draw a dynamic picture at runtime?

DMeix.1
Associate II

I’m using STM32CubeIDE 1.2.1 and TouchGFX 4.13.0 with STM32F746G-DISC0 kit.

I would like to calculate an image at runtime and then display it. Is there a manual or something similar? I have tried the AnimationStorage, unfortunately getAnimationStorage() always returns a Zero.

12 REPLIES 12
DMeix.1
Associate II

Ok, ist working… im using Bitmap::setCache after TouchGFXGeneratedHAL::initialize();

Perfect :) That's the way.

rBlr
Associate III

Any example for init Canvas, draw lines on it (using built-in function, ex. lineTo) and/or classes ex: Line, Circle and then copy to dynamic bitmap?

Thank you