Question about graphic buffers

  • Thread starter Thread starter Les2011
  • Start date Start date
L

Les2011

Guest
With the help of you folks out here I am able to send graphics to a buffer to draw on a picturebox etc. Now I would like to set up another picturebox and send separate graphics to that. I have a routine called ResizeBuffer which takes care of everything. Do I need to set up another routine and rename it say resizeBuffer1 and do I need to change the name of backBuffer also to maybe backBuffer1 ?? If that is the case then that just seems to make me have a lot of duplicate code since some of the subs I have write to pictureBox1 but sometimes I want to write to pictureBox2. Perhaps there are some tricks of the trade here I will leave it to you experts <S>


Using






g AsGraphics = Graphics.FromImage(backbuffer),


Thanks,

Les

Continue reading...
 
Back
Top