|
|
|
@ -97,7 +97,7 @@
|
|
|
|
|
///The number of columns the grid will have. |
|
|
|
|
columns: int } |
|
|
|
|
|
|
|
|
|
/// Discriminated Union representing the various specification types |
|
|
|
|
/// A Discriminated Union representing the various specification types |
|
|
|
|
/// Death Socket can use to apply a grid to an image. |
|
|
|
|
type ImageSpec = |
|
|
|
|
| Brush of BrushSpec |
|
|
|
@ -105,9 +105,14 @@
|
|
|
|
|
| Skia of SkiaSpec |
|
|
|
|
| SkiaRGB of SkiaRGBSpec |
|
|
|
|
|
|
|
|
|
/// Discriminated Union representing the graphics libraries used by |
|
|
|
|
/// Death Socket. Useful for selecting which one you want to use. |
|
|
|
|
/// System.Drawing for using Windows/Mono and SkiaSharp for Xamarin. |
|
|
|
|
/// A Discriminated Union representing a type of image. The type refers |
|
|
|
|
/// to the graphics library used to read the image file. |
|
|
|
|
/// The graphics library determines how the image is stored in memory |
|
|
|
|
/// and the functions you can perform on it. |
|
|
|
|
/// When creating an ImageType, pass in the file path of the image |
|
|
|
|
/// as a string. If you are on Windows or using Mono, SystemDrawing is |
|
|
|
|
/// the recommended choice. If you using Xamarin, SkiaSharp is the |
|
|
|
|
/// recommended choice. |
|
|
|
|
type ImageType = |
|
|
|
|
| SkiaSharp of string |
|
|
|
|
| SystemDrawing of string |