Graphics.FillRectangle problem
Hello everyone!
The following source-code is working but not in the way i want and I can't figure it out why.
This is my code:
Declaration
Usage
This is what I get

Why there are those white spaces between every rectangle?
They must be automatic because the coords x-y of each rectangle are correct, no offsets added.
Any ideas? Thanks.
The following source-code is working but not in the way i want and I can't figure it out why.
This is my code:
Declaration
Code:
Dim sfondoImg As Bitmap = New Bitmap(PictureBox1.Width, PictureBox1.Height, System.Drawing.Imaging.PixelFormat.Format24bppRgb) Dim G As Graphics = Graphics.FromImage(sfondoImg)
Code:
G.FillRectangle(Calc_arrayB(i), x * (k + 1), y * (k + 1), k, k)

Why there are those white spaces between every rectangle?
They must be automatic because the coords x-y of each rectangle are correct, no offsets added.
Any ideas? Thanks.

