Skip to main content
MOber.4
Associate
May 6, 2021
Question

Cache multiple lines

  • May 6, 2021
  • 2 replies
  • 660 views

Hi

I want to draw 100 lines and use it as background. They will not change often so I can save it in line_buffer and use blitCopy to paste it to framebuffer below my graph.

Is there any way to redirect line drawing to line_buffer or any other clever way to do it?

Best regards Matjaz

This topic has been closed for replies.

2 replies

Romain DIELEMAN
ST Employee
May 7, 2021

Hi,

Why do you want to draw 100 lines :grinning_face_with_sweat: ? Seems a bit complicated for not much. It might not be a great idea but would it be relevant to use an image instead and to add a few lines (box widgets or line widgets ?) on top of it when the background needs modifications ? If you are planning to only use Line widgets this alternative would "greatly" improve the performances, as line widgets rely heavily on the mcu.

/Romain

MOber.4
MOber.4Author
Associate
May 7, 2021

I have XY graph and those thick lines in background are limit area for XY graph. I cant use picture, because limit area is not fixed.