Hier in der Funktion haste das round zumindest nur beim j:=...
Delphi-Quellcode:
procedure TForm1.btn_Zeichne1Click(Sender: TObject);
var
i,j:Integer;
x,y: Real;
begin
a:= StrToFloatDef(edt_X.Text, 0);
b:= StrToFloatDef(edt_B.Text, 0);
c:= StrToFloatDef(edt_Cx.Text, 0);
i:=0;
for i := 0 to GetWidth(PaintBox1.Canvas.ClipRect) do
begin
x:= (i-(GetWidth(PaintBox1.Canvas.ClipRect) div 2)) / GetScaleValue(TrackBar1.Position);
y:= (a * sqr (x + b) + c);
j:= round((GetHeight(PaintBox1.Canvas.ClipRect) div 2) - y * GetScaleValue(TrackBar1.Position));
PaintBox1.Canvas.Pixels[i,j]:=clred;
end;
end;