Ok, here is Version 1.1
I changes some things:
Name to n Gradient Edit, just because it is not any more double...
I doesn't realy understand how to save configs - please corret it. Thanks
I comment the Copy-to-clipboard thing - to lazy to corret it...
i stopped the dpi thing because the editor doesn't look ok on my pc, remove "//" in Form.Create if you want to use it.
I changed the editor for arrays, i use a stringlist. Double Click on StartColor /StopColor or Gradient for an Combobox / ColorDialog.
I paint on an Image.
The Image is not longer in the middle - i Had some problems, if you could fix it : great.
You can scale the Form.
I tried to seperate render and the rest...
2 Bugfixes: There where 2 codes , how looked loke this: (Rect.Bottom) *37 and i corrected them to (Rect.Bottom - Rect.Top) * 37 + Rect.Top.
If Top and left was 0 there was no problem ...
Also i just changed the line
GradientPB.Canvas.Draw(0,0,ABitmap);
to
Panel1.Canvas.Draw(0,0,ABitmap);
doesn't look nice, but works...
I run the jedi coe formator, just because i write
if True then
begin
inc(i);
end;
instead of
if True then begin
inc(i);
end;
so there a 2 files inside.