P
Phill
For the drawing on my control would it be better to allocate all the
pens / brushes needed during painting as member variables instead of
a whole bunch of
using( Pen p = ... )
{
}
type blocks in my paint handler functions.
It seems like it would be faster. And the memory requirements of a
solid color pen/brush must be small. The only downside I can think of
is that somewhere the user of the control would need to call
dispose().
Any advice, thoughts?
pens / brushes needed during painting as member variables instead of
a whole bunch of
using( Pen p = ... )
{
}
type blocks in my paint handler functions.
It seems like it would be faster. And the memory requirements of a
solid color pen/brush must be small. The only downside I can think of
is that somewhere the user of the control would need to call
dispose().
Any advice, thoughts?