C#在窗体画图GDI+,如何缩放 如题,希望给出代码 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 - -!、、根据你的问题 我只知道两个信息1.窗体上画图 2.缩放、、、不知道g.DrawImage(Image img,Rectangle descRect,Rectangle srcRect,GraphicsUint srcUint);是不是你想要的 http://www.cnblogs.com/wu-jian/archive/2011/02/21/1959382.html看看这个应该对你又帮助滴 我找到如何缩放所画图形的方法,但是有个问题,我画的Cross交叉线,源程序的格子很小,放大后,格子大小不变,只是覆盖范围大了,我其实想要把格子变大 lz看看这里:http://topic.csdn.net/u/20111201/15/1f460276-2c8e-4243-80dc-c2a8bd1b39d5.html private void Form1_Paint(object sender, PaintEventArgs e) { Graphics g = this.CreateGraphics(); Pen pen = new Pen(Color.Red); float x=10; float y=10; float width=10; float height=10; for (int i = 0; i < 10; i++) { x += 10; y += 10; width += 10; height += 10; g.DrawEllipse(pen, x, y, width, height); } }我自己写的不知道是不是这种 使用c#的HttpWebRequest下载文件时总是报错 *WEB FORM中关于DATAGRID的问题* 大哥大姐救命,请教查询问题 多线程问题!!!急!请各位大虾看看!!! 大家觉得EditePlus和UltraEdit各有什么优缺点,大家喜欢用哪个啊? 什么是钩子? 关于三层架构的问题。。。 急急急。。前辈请指点迷津!!! 未能加载文件或程序集 winform InitializeComponent()最后一行this.ResumeLayout(false);我感觉应该用true才对 windows任务栏中的工具栏如何创建? 求将16进制byte数组还原为字符串的操作
不知道g.DrawImage(Image img,Rectangle descRect,Rectangle srcRect,GraphicsUint srcUint);是不是你想要的
看看这个应该对你又帮助滴
{
Graphics g = this.CreateGraphics();
Pen pen = new Pen(Color.Red);
float x=10;
float y=10;
float width=10;
float height=10;
for (int i = 0; i < 10; i++)
{
x += 10;
y += 10;
width += 10;
height += 10;
g.DrawEllipse(pen, x, y, width, height);
}
}
我自己写的不知道是不是这种