I am trying to figure out how to draw simple lines on a bitmap in memory, then display the bitmap on a control (probably a PictureBox). I also need to be able to save the memory bitmap to a .bmp file. Im using VB .NET.
I have been completely unable to figure out how to set up the various objects to do this. BitMap? Image? Graphics? I am so lost.
If someone could show me a simple example, I think I could figure it out from there. How about an example that would create a bitmap in memory, draw a line on the bitmap, and then show the bitmap on a PictureBox control?
Any help would be greatly appreciated.
I have been completely unable to figure out how to set up the various objects to do this. BitMap? Image? Graphics? I am so lost.
If someone could show me a simple example, I think I could figure it out from there. How about an example that would create a bitmap in memory, draw a line on the bitmap, and then show the bitmap on a PictureBox control?
Any help would be greatly appreciated.