Death Socket consists of three projects. They are a .Net Standard 2.0 library, a console program and a Test Centre. The purpose of this repository is to provide a way for people to add grids to images.
https://www.craigoates.net/Software/project/13
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.2 KiB
35 lines
1.2 KiB
namespace DeathSocket |
|
|
|
/// The domain types used by Death Socket. |
|
[<AutoOpen>] |
|
module Domain = |
|
|
|
open System.Drawing |
|
|
|
/// The specification which uses System.Drawing brush to draw a grid. |
|
type BrushSpec = |
|
{ /// The original path of the image which the grid is being added to. |
|
originalPath: string |
|
/// The location of the new gridded image. |
|
savePath: string |
|
/// The (System.Drawing) brush used to draw the grid. This determines the colour. |
|
colour: Brush |
|
/// The thickness of the line on the grid. |
|
penWidth: float32 |
|
/// The number of rows the grid will have. |
|
rows: int |
|
///The number of columns the grid will have. |
|
columns: int } |
|
|
|
/// The specification which uses includes individual RGBA values to |
|
/// draw a grid. |
|
type RGBASpec = |
|
{ originalPath: string |
|
savePath: string |
|
alpha: float |
|
red: float |
|
green: float |
|
blue: float |
|
penWidth: float32 |
|
rows: int |
|
columns: int } |