Death Socket consists of three projects. They are a .Net Standard 2.0 library, a console program and a Test Centre. The purpose of this repository is to provide a way for people to add grids to images. https://www.craigoates.net/Software/project/13
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
556 B

namespace Commands
module ConsoleCommands =
open DeathSocket
open System.Drawing
let test () = "Death Socket is working."
let ``add-grid`` imgPath numRows numColumns pWidth (colour: string) newPath =
let spec =
{ originalPath = imgPath
savePath = newPath
colour = Brushes.Red
penWidth = pWidth
rows = numRows
columns = numColumns }
GridPainter.applyGrid spec |> Async.RunSynchronously