|
|
|
@ -214,3 +214,23 @@ namespace DeathSocket
|
|
|
|
|
| :? FileNotFoundException as ex -> |
|
|
|
|
printfn "File could not be found at %s" ex.Message |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
let applyImageToGrid (spec: ImageSpec) = |
|
|
|
|
async { |
|
|
|
|
try |
|
|
|
|
match spec with |
|
|
|
|
| BrushSpec b -> |
|
|
|
|
validateIO b.originalPath b.savePath |> ignore |
|
|
|
|
drawBrushSpecGrid b |
|
|
|
|
| RGBASpec r -> |
|
|
|
|
validateIO r.originalPath r.savePath |> ignore |
|
|
|
|
drawRGBAGrid r |
|
|
|
|
| SkiaSpec s -> |
|
|
|
|
validateIO s.originalPath s.savePath |> ignore |
|
|
|
|
drawSkiaGrid s |
|
|
|
|
| SkiaRGBSpec sR -> |
|
|
|
|
validateIO sR.originalPath sR.savePath |> ignore |
|
|
|
|
with |
|
|
|
|
| :? FileNotFoundException as ex -> |
|
|
|
|
printfn "File could not be found at %s" ex.Message |
|
|
|
|
} |