The changes in these two locations reflect the added grey scale conversion functionality. The tests pass with the new features and the scripts work to without problem.
The code can now convert the image into grey scale and add a grid on top of it when using the RGBASpec. The commands in the console program can now pass on the grey scale variable to. The Skia Sharp functions still need this functionality added it.
I have seperated the drawBrushSpec function into two functions: One using the greyScale option and the other without. The code should be easier to read and not get bogged down in the if-else statement it was using previously. This is the only part of the code which convert the image to greyscale.
The code which used the Brush spec type can now convert the image to greyscale and save the image with the grid still in the colour the end-user selected. This code is very rough and will need cleaning up.
4 years ago
6 changed files with 117 additions and 36 deletions
<Description>A .Net Standard library which you can plug into to project and draw gridded overlays onto you images. Please note, Death Socket uses System.Drawing brushes and not System.Media brushes.</Description>
<PackageReleaseNotes>A minor release. The change from 1.x to 2.x is to signify the changing of the projects versioning control system, from GitLab to git.abbether. The projects package information and its NuGet dependencies have been updated.</PackageReleaseNotes>