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.
63 lines
2.1 KiB
63 lines
2.1 KiB
namespace DeathSocket |
|
|
|
/// The domain types used by Death Socket. |
|
[<AutoOpen>] |
|
module Domain = |
|
|
|
open System.Drawing |
|
|
|
/// <summary> |
|
/// The specification used by Death Socket when adding a grid to an image. |
|
/// </summary> |
|
type ImageSpec = |
|
{ /// 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 } |
|
|
|
/// <summary> |
|
/// The specification which uses System.Drawing brush to draw a grid. |
|
/// </summary> |
|
// REPLACING IMAGESPEC |
|
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 } |
|
|
|
type RGBASpec = |
|
{ originalPath: string |
|
savePath: string |
|
alpha: float |
|
red: float |
|
green: float |
|
blue: float |
|
penWidth: float32 |
|
rows: int |
|
columns: int } |
|
|
|
type CMYKSpec = |
|
{ originalPath: string |
|
savePath: string |
|
cyan: float |
|
magenta: float |
|
yellow: float |
|
key: float32 |
|
rows: int |
|
columns: int } |