J
Juan Dent
Hi,
I understand that if one creates a Graphics object, as in
Graphics.FromImage(), then after using it it seems only logical do dispose it.
However, when one receives a Graphics object in a parameter (as in OnPaint(
PaintEventArgs)), then I assume it might be possible that this object be used
after the end of the current method, andçor ultimately disposed by the
internall code that created it in the first place. So, my gut tells me not to
Dispose this received Graphics.
Am I correct?
I understand that if one creates a Graphics object, as in
Graphics.FromImage(), then after using it it seems only logical do dispose it.
However, when one receives a Graphics object in a parameter (as in OnPaint(
PaintEventArgs)), then I assume it might be possible that this object be used
after the end of the current method, andçor ultimately disposed by the
internall code that created it in the first place. So, my gut tells me not to
Dispose this received Graphics.
Am I correct?