Exemplo n.º 1
0
 //instead of Image we should choice the grapcics
 public static System.Drawing.Image Draw(System.Drawing.Image img, Action <IImageOptions> action)
 {
     using (Graphics gr = img.InitGraphics())
         action(new ImageOptions(img, gr));
     return(img);
 }
Exemplo n.º 2
0
 public static System.Drawing.Image Fill(System.Drawing.Image source, Color color)
 {
     using (Graphics gr = source.InitGraphics())
         gr.Clear(color);
     return(source);
 }