| |

VerySource

 Forgot password?
 Register
Search
View: 777|Reply: 1

The edges appear jagged when drawing a circle on the image, how to make the edges smooth

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-5 16:30:01
| Show all posts |Read mode
The edges appear jagged when drawing a circle on the image, how to make the edges smooth
Reply

Use magic Report

0

Threads

15

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-1-7 16:54:01
| Show all posts
uses GDIPAPI, GDIPOBJ;

{$ R * .dfm}

procedure TForm1.Button1Click (Sender: TObject);
var
  g: TGpGraphics;
  p: TGpPen;
begin
  g: = TGpGraphics.Create (Image1.Canvas.Handle);
  p: = TGpPen.Create (aclRed, 3);
  g.SetSmoothingMode (SmoothingModeHighQuality);
  g.DrawEllipse (p, 10, 10, 20, 20);
  p.Free;
  g.Free;
end;
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list