c#关于float转换成int的问题 10
SingleX,Y;Colorc=newColor();c=Color.Black;Penpe=newPen(c);Bitmaps=newBitmap(200,200);...
Single X,Y;
Color c = new Color();
c = Color.Black;
Pen pe = new Pen(c);
Bitmap s = new Bitmap(200, 200);
Graphics g = Graphics.FromImage(s);
g.Clear(Color.White);
X = Convert.ToSingle(textBox1);
Y = Convert.ToSingle(textBox2);
Point p1 = new Point(0, 0);
Point p2 = new Point(X, Y);
g.Draine(pe, X, Y);
X和Y都想要高精度的坐标该怎么实现? 展开
Color c = new Color();
c = Color.Black;
Pen pe = new Pen(c);
Bitmap s = new Bitmap(200, 200);
Graphics g = Graphics.FromImage(s);
g.Clear(Color.White);
X = Convert.ToSingle(textBox1);
Y = Convert.ToSingle(textBox2);
Point p1 = new Point(0, 0);
Point p2 = new Point(X, Y);
g.Draine(pe, X, Y);
X和Y都想要高精度的坐标该怎么实现? 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询