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.
27 lines
762 B
27 lines
762 B
namespace DeathSocket |
|
|
|
open System.IO |
|
|
|
module GridPainter = |
|
|
|
open Validation |
|
open ImageServices |
|
|
|
// Needs XML comments. |
|
let applyGridAsync spec = |
|
async { |
|
try |
|
validateFilePath |> ignore |
|
drawGrid spec |> ignore |
|
with |
|
| :? FileNotFoundException as ex -> |
|
printfn "File could not be found at %s" ex.Message |
|
} |
|
|
|
// Needs XML comments. |
|
let determineHorizontalLines width height rows = |
|
createHorizontalLines width height rows |
|
|
|
// Needs XML comments. |
|
let determineVerticalLines width height columns = |
|
createVerticalLines width height columns |