diff --git a/DeathSocket/GridPainter.fs b/DeathSocket/GridPainter.fs index 8172dd9..e961c71 100644 --- a/DeathSocket/GridPainter.fs +++ b/DeathSocket/GridPainter.fs @@ -17,7 +17,24 @@ namespace DeathSocket open ImageServices open System - // Not tested + /// + /// Uses the information included in spec to create a gridded image. + /// It then asynchronously saves it. Uses .jpg or .png formats only. + /// + /// + /// The specification used to generate the new gridded image. The + /// ImageSpec is a discriminated union, consisting of a Brush, RGBA, + /// Skia or SkiaRGB spec. + /// + /// + /// If the file the grid is being applied to cannot be found, + /// a FileNotFoundException will be thrown. + /// + /// let applyGridToImageAsync (spec: ImageSpec) = async { try diff --git a/DeathSocket/ScratchPad.fsx b/DeathSocket/ScratchPad.fsx index e14403b..c719984 100644 --- a/DeathSocket/ScratchPad.fsx +++ b/DeathSocket/ScratchPad.fsx @@ -1,6 +1,6 @@ -#r @"C:/Users/craig/.nuget/packages/skiasharp/1.60.3/lib/netstandard1.3/SkiaSharp.dll" +// These two paths need adjusting to match your computer. +#r @"C:/Users/craig/.nuget/packages/skiasharp/1.60.3/lib/netstandard1.3/SkiaSharp.dll" #r @"C:/Users/craig/.nuget/packages/skiasharp/1.60.3/lib/net45/SkiaSharp.dll" -#r @"C:/Users/craig/.nuget/packages/skiasharp/1.60.3/lib/Xamarin.Mac20/SkiaSharp.dll" #load "Domain.fs" #load "Validation.fs" @@ -83,4 +83,4 @@ SkiaRGB ({ originalPath = desktop + "/test.jpg" rows = 10 columns = 10}) |> GridPainter.applyGridToImageAsync -|> Async.RunSynchronously \ No newline at end of file +|> Async.Start \ No newline at end of file diff --git a/TestCentre/LibraryTests.fs b/TestCentre/LibraryTests.fs index 1ee1e20..8e37eb1 100644 --- a/TestCentre/LibraryTests.fs +++ b/TestCentre/LibraryTests.fs @@ -102,7 +102,6 @@ open FsCheck.Xunit open DeathSocket open System.Drawing - open DeathSocket open DeathSocket.GridPainter open TestingHelpers open System.IO