cancel
Showing results for 
Search instead for 
Did you mean: 

Cache multiple lines

MOber.4
Associate

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

2 REPLIES 2
Romain DIELEMAN
ST Employee

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
Associate

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.