PurplePen.DotGrid.DrawDot C# (CSharp) Method

DrawDot() public method

public DrawDot ( Graphics g, int row, int col ) : void
g Graphics
row int
col int
return void
        void DrawDot(Graphics g, int row, int col)
        {
            RectangleF rectGridCell = new RectangleF(col * pixelsPerDot, row * pixelsPerDot, pixelsPerDot, pixelsPerDot);
            RectangleF rectCircle = rectGridCell;
            rectCircle.Inflate(- (pixelsPerDot * (1 - DOTWIDTH)) / 2F, - (pixelsPerDot * (1 - DOTWIDTH)) / 2F);

            g.FillEllipse(Brushes.Black, rectCircle);
        }

Same methods

DotGrid::DrawDot ( int row, int col ) : void