|
|
@ -3,6 +3,8 @@ namespace DeathSocket |
|
|
|
open System.IO |
|
|
|
open System.IO |
|
|
|
|
|
|
|
|
|
|
|
/// Provides functions which help draw gridded overlays onto images. |
|
|
|
/// Provides functions which help draw gridded overlays onto images. |
|
|
|
|
|
|
|
/// Grid Painter, and all of Death Socket, uses the System.Drawing brushes/colours. |
|
|
|
|
|
|
|
/// If you are using System.Media brushes and colour, you will need to convert them. |
|
|
|
module GridPainter = |
|
|
|
module GridPainter = |
|
|
|
|
|
|
|
|
|
|
|
open Validation |
|
|
|
open Validation |
|
|
@ -43,6 +45,7 @@ namespace DeathSocket |
|
|
|
/// <param name="width">The width of the image.</param> |
|
|
|
/// <param name="width">The width of the image.</param> |
|
|
|
/// <param name="height">The height of the image.</param> |
|
|
|
/// <param name="height">The height of the image.</param> |
|
|
|
/// <param name="rows">The number of rows the grid should have.</param> |
|
|
|
/// <param name="rows">The number of rows the grid should have.</param> |
|
|
|
|
|
|
|
/// <remarks>You will probably only need these when dealing with GUI's.</remarks> |
|
|
|
let determineHorizontalLines width height rows = |
|
|
|
let determineHorizontalLines width height rows = |
|
|
|
createHorizontalLines width height rows |
|
|
|
createHorizontalLines width height rows |
|
|
|
|
|
|
|
|
|
|
@ -53,5 +56,6 @@ namespace DeathSocket |
|
|
|
/// <param name="width">The width of the image.</param> |
|
|
|
/// <param name="width">The width of the image.</param> |
|
|
|
/// <param name="height">The height of the image.</param> |
|
|
|
/// <param name="height">The height of the image.</param> |
|
|
|
/// <param name="columns">The number of columns the grid should have.</param> |
|
|
|
/// <param name="columns">The number of columns the grid should have.</param> |
|
|
|
|
|
|
|
/// <remarks>You will probably only need these when dealing with GUI's.</remarks> |
|
|
|
let determineVerticalLines width height columns = |
|
|
|
let determineVerticalLines width height columns = |
|
|
|
createVerticalLines width height columns |
|
|
|
createVerticalLines width height columns |