Browse Source

update build info. to 0.4 and add XML comments to RGBASpec.

master
Craig Oates 6 years ago
parent
commit
ee06f141d5
  1. 15
      DeathSocket/DeathSocket.fsproj
  2. 12
      DeathSocket/Domain.fs

15
DeathSocket/DeathSocket.fsproj

@ -2,6 +2,21 @@
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<Version>0.4-alpha</Version>
<Authors>Craig Oates</Authors>
<Product>Death Socket</Product>
<Description>A .Net Standard library which you can plug into to project and draw gridded overlays onto you images. Please note, Death Socket uses System.Drawing brushes and not System.Media brushes. For futher information, visit the projects repository on GitHub. To get a sense of what Death Socket can do, there is a console program you can download seperately (on GitHub).</Description>
<PackageProjectUrl>https://github.com/CraigOates/Death-Socket/tree/master</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/CraigOates/Death-Socket/blob/master/LICENSE</PackageLicenseUrl>
<Company />
<Copyright>Craig Oates</Copyright>
<RepositoryUrl>https://github.com/CraigOates/Death-Socket/tree/master</RepositoryUrl>
<RepositoryType>Git</RepositoryType>
<PackageTags>deathsocket craig oates image overlay f#</PackageTags>
<PackageReleaseNotes>This release has renamed the ImageSpec to BrushSpec and added a new RGBASpec type. The RGBASpec allows the user to pass in individual RGBA values instead of creating a SolidBrush before adding it to the BrushSpec.
New functions have been added so you can now create a SolidBrush using individual RGBA values or an RGBASpec -- you do not need to do it yourself. Another "apply grid" function has been added , as well, which uses the new RGBASpec.</PackageReleaseNotes>
</PropertyGroup>
<ItemGroup>

12
DeathSocket/Domain.fs

@ -24,12 +24,22 @@
/// The specification which uses includes individual RGBA values to
/// draw a grid.
type RGBASpec =
{ originalPath: string
{ /// 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 opacity level of the grid.
/// 0 makes it completely see through and 1 makes it solid.
alpha: float
/// The amount of red the grid's line will have.
red: float
/// The amount of green the grid's line will have.
green: float
/// The amount of blue the grid's line will have.
blue: float
/// 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…
Cancel
Save