在GDI+中没有疑惑画法,调用API实现异或画线,现在的思路是重新封装API的画图类,写个类似Graphics的类,请各位给点思路,不胜感激
解决方案 »
- C#安装程序在WIN7上面安装问题
- [求助]winform打印的源码~谢谢。
- 想做操作系统,做过的人给点建议
- 我想从本地读取已经浏览的网址标题(title),效果如图
- 窗体背景动态加载图片
- .Net2.0的Winform程序中,把Treeview的Imagelist加入图像后,却不能显示呢?
- 冬天赤腿跪在雪地中求......
- 如何用C#实现这样的功能
- 语句出错FileStream input = new FileStream("m:\\rain\\area\\03052305.000", FileMode.Open, FileAccess.Read, FileShare.Read);
- 求助,关于Listview!
- SQL SERVER '問題
- 拼音字头搜索文字
???
struct POINTAPI
{
public int x;
public int y;
}
[DllImport("coredll.dll")]
private static extern bool LineTo(IntPtr hdc, IntPtr x, IntPtr y);
public void LineTo(int x, int y)
{
LineTo(new IntPtr(hDc), new IntPtr(x), new IntPtr(y));
}
public void DrawLine(int x1, int y1, int x2, int y2)
{
POINTAPI lpOld = new POINTAPI();
MoveToEx(new IntPtr(hDc), new IntPtr(x1), new IntPtr(y1), ref lpOld);
LineTo(new IntPtr(hDc), new IntPtr(x2), new IntPtr(y2));
}
其他的不会定义了