在线等待,请高手指点,绘图及数据结构问题!!! you should be able to use P/Invoke to call PolyDraw, System.Drawing.Drawing2D.GraphicsPath has a PathPoints property which gives you a list of points 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 用中方好吗?我看不太懂,GraphicsPath的点是类型如何如果放到polydraw里就不一样了,它们的类型不一样 用中文好吗?我看不太懂,GraphicsPath的点是类型如何如果放到polydraw里就不一样了,它们的类型不一样 GraphicsPath.PathTypes 可以设置相应的类型!PolyDraw( const POINT* lpPoints,//GraphicsPath.PathPoints const BYTE* lpTypes,//GraphicsPath.PathTypes int nCount ); GraphicsPath.PathTypes 虽然也是byte[]但值的含意跟polydraw不同且有8种,polydraw只有四种值,如果错了一个全完,怎么办??? 呵呵............毕竟是GDI+Graphics::DrawPolygon PathPoints 是PointF[],而PolyDraw是Point[],要一个点一个点的做循环转化吗? PolyDraw( const POINT* lpPoints,//GraphicsPath.PathPoints const BYTE* lpTypes,//GraphicsPath.PathTypes int nCount );这样画不出来呀? 那也不可能画出,GraphicsPath.PathTypes 虽然也是byte[]但值的含意跟polydraw不同且有8种,polydraw只有四种值,如果错了一个全完,怎么办??? 数组本来就是指针,用不用ref无所谓,关键是byte值的转化,如果全部转成直线能画一个不精确的轮廓 串口死掉 有木有什么方法在不用重启电脑的情况下 复位串口 求C#对实现XML配置文件的代码 如何 使 XTraGrid 行 单元格 锁定 C# Socket 关闭服务,如何关闭当前已经连接的socket C# winform下 datagridview tab键控制单元格移动? 一个关于 replace 的问题 求助:如果查询一个表中内容,并把符合条件的写入另一个表中 郁闷,散分 c#正则取一段数据请教 请教实体类的基类和派生类的问题 怎样将DataGrid绑定到DataView ? 一个特殊的需求?
PolyDraw(
const POINT* lpPoints,//GraphicsPath.PathPoints
const BYTE* lpTypes,//GraphicsPath.PathTypes
int nCount
);
毕竟是GDI+
Graphics::DrawPolygon
const POINT* lpPoints,//GraphicsPath.PathPoints
const BYTE* lpTypes,//GraphicsPath.PathTypes
int nCount
);
这样画不出来呀?