Craig Oates
6 years ago
4 changed files with 51 additions and 21 deletions
@ -1,23 +1,24 @@
|
||||
namespace DeathSocket |
||||
|
||||
/// The domain types used by Death Socket. |
||||
[<AutoOpen>] |
||||
module Domain = |
||||
|
||||
open System.Drawing |
||||
open System.Drawing.Imaging |
||||
|
||||
/// <summary> |
||||
/// The specification used by Death Socket when adding a grid to an image. |
||||
/// </summary> |
||||
type ImageSpec = |
||||
{ originalPath: string; |
||||
savePath: string; |
||||
colour: Brush; |
||||
penWidth: float32 |
||||
rows: int; |
||||
columns: int } |
||||
|
||||
type StreamSpec = |
||||
{ imagePath: string; |
||||
format: ImageFormat; |
||||
colour: Brush; |
||||
penWidth: float32 |
||||
rows: int; |
||||
{ /// 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 } |
Loading…
Reference in new issue