diff --git a/DeathSocket/ImageServices.fs b/DeathSocket/ImageServices.fs index c6408c3..6b2d748 100644 --- a/DeathSocket/ImageServices.fs +++ b/DeathSocket/ImageServices.fs @@ -34,6 +34,7 @@ use bitmap = SKBitmap.Decode (skStream) (bitmap.Width, bitmap.Height) + // Not working since update NuGet to 1.68 let drawSkiaGrid (spec: SkiaSpec) = use fileStream = File.Open (spec.originalPath, FileMode.Open) use skStream = new SKManagedStream (fileStream) @@ -75,6 +76,7 @@ let drawSkiaRGBGrid spec = use fileStream = File.Open (spec.originalPath, FileMode.Open) use skStream = new SKManagedStream (fileStream) + use t = new SKBitmap () use bitmap = SKBitmap.Decode (skStream) use shader = SKShader.CreateBitmap (bitmap, SKShaderTileMode.Mirror, SKShaderTileMode.Mirror) diff --git a/TestCentre/LibraryTests.fs b/TestCentre/LibraryTests.fs index 8a2462d..da33cf0 100644 --- a/TestCentre/LibraryTests.fs +++ b/TestCentre/LibraryTests.fs @@ -105,14 +105,13 @@ open DeathSocket.GridPainter open TestingHelpers open FsCheck.Xunit + open SkiaSharp (* With regards to the "saving images" tests, you should end up with one image left over in the SavingTestArea folder. Comment out the "reset" function to see all the images produced by this test. This will mean you will need to manually delete the images yourself if you do. *) - // scaleLineThickness - [] let ``Can apply grid to image and save it using BrushSpec`` () = resetSavingTestArea () @@ -177,6 +176,7 @@ let result = determineVerticalLines (newNum()) (newNum()) (newNum()) result.Length > 0 + // Not working since update NuGet to 1.68 [] let ``Can apply grid to image and save it using SkiaSpec`` () = resetSavingTestArea() @@ -221,8 +221,6 @@ module UnitTests = - // scaleLineThickness - open TestingHelpers open Xunit open DeathSocket