@ -51,6 +51,10 @@ let dimensions =
// Change the line thickness (the last parameter) to whatever you want.
let scaledPen = GridPainter.scaleLineThickness (100, 100) dimensions 8.0
(* THE CODE BELOW DOES NOT INCLUDE THE GREY SCALE FUNCTIONALITY.
I HAVE JUST PLACE 'FALSE' IN PLACE. THE GREY SCALE OPTIONS WILL NEED ADDING
AT SOME POINT. WHEN THAT IS DONE, DELETE THIS COMMENT.*)
// Brush Specification (uses System.Drawing)
Brush ({ originalPath = desktop + "/test.jpg"
savePath = desktop + "/grid.png"
@ -58,7 +62,7 @@ Brush ({ originalPath = desktop + "/test.jpg"
penWidth = (float32 1)
rows = 10
columns = 10 })
|> GridPainter.applyGridToImageAsync
|> GridPainter.applyGridToImageAsync false
|> Async.Start
// RGBA Specification (uses System.Drawing)
@ -71,7 +75,7 @@ RGBA ({ originalPath = desktop + "/test.jpg"
penWidth = (float32 1)
rows = 10
columns = 10 })
|> GridPainter.applyGridToImageAsync
|> GridPainter.applyGridToImageAsync false
|> Async.Start
// Skia Specification (uses SkiaSharp -- use with Xamarin)
@ -81,7 +85,7 @@ Skia ({ originalPath = desktop + "/test.jpg"
penWidth = (float32 1)
rows = 10
columns = 10})
|> GridPainter.applyGridToImageAsync
|> GridPainter.applyGridToImageAsync false
|> Async.Start
// SkiaRGB Specification (uses SkiaSharp -- use with Xamarin)
@ -93,5 +97,5 @@ SkiaRGB ({ originalPath = desktop + "/test.jpg"
penWidth = (float32 1)
rows = 10
columns = 10})
|> GridPainter.applyGridToImageAsync
|> GridPainter.applyGridToImageAsync false
|> Async.Start