It's unbearable to answer this question again and again; it's too often asked. Please, do this:
http://www.codeproject.com/search.aspx?doctypeid=5&q=SQL+%28images+OR+image%29[
^].
Now, it looks like you modify images in
PictureBox
. Why, on Earth? You can do it, but it's totally pointless. This control is nothing but a shortcut used to do something very simple: show a static image on screen. If you do anything even a bit more complex, you simply do double work; and a computer also does double work. Control is not an image.
I'll tell you what to do instead. You should either render image in the control directly, or do in on a bitmap, and draw a bitmap of some control. It could be a custom control derived from
System.Windows.Forms.Control
, or
Panel
, or even
Form
. How? I'll explain that. Please see my past answers:
How do I clear a panel from old drawing[
^],
draw a rectangle in C#[
^],
Append a picture within picturebox[
^].
See also:
Drawing Lines between mdi child forms[
^],
capture the drawing on a panel[
^],
What kind of playful method is Paint? (DataGridViewImageCell.Paint(...))[
^],
How to speed up my vb.net application?[
^].
—SA