欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

WinAPI: Ellipse - 绘制椭圆

程序员文章站 2022-03-02 10:28:48
...
//声明:
Ellipse(
  DC: HDC;                {设备环境句柄}
  X1, Y1, X2, Y2: Integer {两个点的坐标}
): BOOL;

 
 
 
 
 

 

 

  

//举例:
procedure TForm1.FormPaint(Sender: TObject);
const
  x1 = 20;
  y1 = 20;
  x2 = 200;
  y2 = 100;
begin
  Ellipse(Canvas.Handle, x1,y1, x2,y2);
end;

 
 
 
 
 

 

 

  

//效果图:
WinAPI: Ellipse - 绘制椭圆

转载于:https://my.oschina.net/hermer/blog/320166