//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); }
public static System.Drawing.Image Fill(System.Drawing.Image source, Color color) { using (Graphics gr = source.InitGraphics()) gr.Clear(color); return(source); }