From d6740c012e40586b5158b5e49d33966ba9b5956c Mon Sep 17 00:00:00 2001 From: Craig Oates Date: Sun, 21 Oct 2018 09:58:46 +0100 Subject: [PATCH] remove function using ImageSpec. --- DeathSocket/ImageServices.fs | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/DeathSocket/ImageServices.fs b/DeathSocket/ImageServices.fs index 1c249fd..750e026 100644 --- a/DeathSocket/ImageServices.fs +++ b/DeathSocket/ImageServices.fs @@ -18,23 +18,6 @@ [| Point ((interval * point), 0) Point ((interval * point), height)|]|] - // To be deleted -- replaced with brush spec. - //let drawGrid (spec: BrushSpec) = - // // The temp. file is used as a way to convert images with indexed pixels. - // use original = Bitmap.FromFile spec.originalPath - // use temp = new Bitmap(original) - // use clone = temp.Clone(new Rectangle(0, 0, temp.Width, temp.Height), PixelFormat.Format32bppArgb) - // use graphics = Graphics.FromImage(clone) - // use pen = new Pen (spec.colour, width = spec.penWidth) - // graphics.DrawImage(original,new Rectangle(0, 0, clone.Width, clone.Height)) - // let horizontalLines = - // createHorizontalLines (clone.Size.Width) (clone.Size.Height) (spec.rows) - // let verticalLines = - // createVerticalLines (clone.Size.Width) (clone.Size.Height) (spec.columns) - // for line in horizontalLines do graphics.DrawLines (pen, line) - // for line in verticalLines do graphics.DrawLines (pen, line) - // clone.Save (spec.savePath) - let drawBrushSpecGrid (spec: BrushSpec) = // The temp. file is used as a way to convert images with indexed pixels. use original = Bitmap.FromFile spec.originalPath