
用c#编写程序,将图片剪裁成圆形 急求全部程序
2016-07-09
展开全部
class Program { static void Main(string[] args) { Circle c = new Circle(1.0); Console.WriteLine(c.GetPerimeter()); Console.WriteLine(c.GetArea()); Console.ReadLine(); } } public class Circle { public Circle(double radius) { Radius = radius; } public double Radius; public double GetPerimeter() { return 2 * Math.PI * Radius; } public double GetArea() { return Math.PI * Math.Pow(Radius, 2); } }
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询