I have a function that returns a bitmap
meant to be used as background in a panel, and occasionally I'd have to call it to create a new background based on parameters.
(Since there are two drawing functions for this panel (the background doesn't need to be changed as often as the foreground) it's not a matter of just drawing on the Paint
event.)
So my question is: Is there a (more than symbolic) performance gain if I get the old background buffer as a paramenter and draw on it instead of creating a new bitmap every time the function is called?