In the two files in attachment you can see the first picture (sharp and perfect) and the second (with blurred outlines). In the two pictures I have drawn exactly the same things, so one can better make comparisons.
You see, I am trying to make a coloured diagram, what in principle would be already available in Lazarus through TColorMapSeries: I didn't use TColorMapSeries because the colour of the rectangles can not be determined through a simple function, but through quite complicated code.
Clicking the button on the top, the following is executed:
procedure TForm1.B_zeigenClick(Sender: TObject);
begin
DiagrammZeichnen(); // just prepares the data necessary to calculate the rectangles and their colour
Form1.PaintBox1.Show; (* I need this because as default I keep the PaintBox not visible, otherwise it tries to paint the drawing before having loaded and prepared the data, as soon as I activate the form. Is maybe this the problem ? I have no idea. *)
Form1.PaintBox1.Canvas.Clear;
Form1.PaintBox1.Repaint; // This triggers the event that calls OnPaint, where I have written the code that draws the reactangles, the lattice etc...
end;
This same procedure is called both to produce the first drawing and the second one.
I use a Laptop with Windows Vista Home Basic and Intel(R) Pentium(R) Dual CPU T3400 @ 2.16GHz and 3,00 GB RAM.