X-Git-Url: http://git.euphorik.ch/?p=master-thesis.git;a=blobdiff_plain;f=Parasitemia%2FParasitemiaCore%2FImgTools%2FDrawing.fs;h=edf4cd2c758e77ad116db40ae188800782832094;hp=363acdadba395633474a7b1fb2035e95a4bcb93e;hb=1b8e45987bde692ab5602c281f878707f70459b7;hpb=32ef4bbb0381f822c4df124595d401ad2f502c1b diff --git a/Parasitemia/ParasitemiaCore/ImgTools/Drawing.fs b/Parasitemia/ParasitemiaCore/ImgTools/Drawing.fs index 363acda..edf4cd2 100644 --- a/Parasitemia/ParasitemiaCore/ImgTools/Drawing.fs +++ b/Parasitemia/ParasitemiaCore/ImgTools/Drawing.fs @@ -51,8 +51,8 @@ let drawCell (img: Image) (drawCellContent: bool) (c: Cell) = let colorG = rngCell.Next(20, 70) let colorR = rngCell.Next(20, 70) - for y in 0 .. c.elements.Height - 1 do - for x in 0 .. c.elements.Width - 1 do + for y = 0 to c.elements.Height - 1 do + for x = 0 to c.elements.Width - 1 do if c.elements.[y, x] > 0uy then let dx, dy = c.center.X - c.elements.Width / 2, c.center.Y - c.elements.Height / 2