Skip to content

marceskt/todo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

todo

 Bitmap bitmap = new Bitmap(@"C:\Work\image.jpg");
 Graphics graphics = Graphics.FromImage(bitmap);
 Brush brush = new SolidBrush(Color.FromKnownColor(KnownColor.Blue));
 Pen pen = new Pen(brush, 6);

// Add rectangle
 graphics.DrawRectangle(pen, 100, 100, 800, 600);


 string filenameNew = string.Format("{0}{1}{2}{3}{4}", Path.GetDirectoryName(filename), Path.DirectorySeparatorChar, "OD_", DateTime.Now.Ticks, ".jpg");
 bitmap.Save(filenameNew);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published