I have picture box with some image int it. I want to draw a line on the image. But when code executes, line is there but image is gone.
Here is the code:
bitmap bmp=new bitmap(pb.width,pb.height);
graphics g=new graphics.fromImage(bmp);
pen p=new pen(color.black,5);
Line is there, but underlaying image is gone. What should I do?