社区
C#
帖子详情
如何获得GraphicsPath中所有的point
卧_槽
2009-06-05 12:21:06
如何获得GraphicsPath中所有的point
而且要快,不能超过100ms
如果用GraphicsPath.IsVisable方法,需要2s以上。
...全文
321
14
打赏
收藏
如何获得GraphicsPath中所有的point
如何获得GraphicsPath中所有的point 而且要快,不能超过100ms 如果用GraphicsPath.IsVisable方法,需要2s以上。
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
14 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
卧_槽
2009-06-09
打赏
举报
回复
召唤高手出现
wuyq11
2009-06-05
打赏
举报
回复
Polygon,有相应的AddPolygon
wuyq11
2009-06-05
打赏
举报
回复
GraphicsPath areaPath = new GraphicsPath();
areaPath.AddEllipse(0, 0, (float)element.Width, (float)element.Height);
areaPath.CloseFigure();
if(areaPath.IsVisible(new System.Drawing.PointF((float)clickPoint.X, (float)clickPoint.Y)))
{
}
else
{
}
xiangbupingfan
2009-06-05
打赏
举报
回复
帮顶先
光宇广贞
2009-06-05
打赏
举报
回复
GraphicsPath.PathPoints 属性
获取点和isvisible有什么关系?
龙宜坡
2009-06-05
打赏
举报
回复
本来就慢!快不到哪里去!
卧_槽
2009-06-05
打赏
举报
回复
如果我添加的是一个多边形呢?
zgke
2009-06-05
打赏
举报
回复
这个....... 你添加GraphicsPath添加一个内容的时候就获取一下..你一下获取如果区域很大..
北京的雾霾天
2009-06-05
打赏
举报
回复
如果有更好的办法,.net里应该就把它实现了。GraphicsPath.IsVisible应该就是最优的算法了。
Qim
2009-06-05
打赏
举报
回复
过来学习。
卧_槽
2009-06-05
打赏
举报
回复
...
卧_槽
2009-06-05
打赏
举报
回复
[Quote=引用 9 楼 wuyq11 的回复:]
Polygon,有相应的AddPolygon
[/Quote]
AddPolygon
只是添加多边形,而不能获取到多边形中所有的点。
而且.net2.0中没有Polygon类,不像规则图形有Contains方法用。
卧_槽
2009-06-05
打赏
举报
回复
[Quote=引用 6 楼 hikaliv 的回复:]
GraphicsPath.PathPoints 属性
获取点和isvisible有什么关系?
[/Quote]
PathPoints只是path的特征点。看清楚再说话。
Graphics
类和
Graphics
Path
类的使用
做课件做到无聊,弄了一个仿QQ截图 利用SendKeys.SendWait("+{PRSTC}")截取当前屏幕利用Clipboard.GetImage()从剪切板
中
得到截取到的图片 利用
Graphics
添加一个全屏的矩形框,颜色为半透明灰色。
Graphics
g =
Graphics
.FromImage(bit);Pen p = new Pen(Color.FromArgb
___89___
Graphics
Path
_GDI矩阵变幻Transform
#region Windows Form Designer generated code /// /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// private void Initia
C++/GDI+ 学习笔记(三)——基础
使用GDI+的一些基础知识。对一些常用的类进行了简单的介绍。 TAG: GDIPlus GDI+ 的主要画刷 SolidBrush 单色画刷 SolidBrush(const Color& color ); HatchBrush 网格画刷 HatchBr
Path
Point
Type浅析(C#)
Graphics
Path
构造函数 ////摘要://使用指定的System.Drawing.Drawing2D.
Path
Point
Type和System.Drawing.
Point
数组初始化//System.Drawing.Drawing2D.
Graphics
Path
类的新实例。...
c# 判断点是否在区域内 点在区域内 在多边形内 判断
方法一 算法 : public int isLeft(
Point
P0,
Point
P1,
Point
P2) { int abc= ((P1.X - P0.X) * (P2.Y - P0.Y) - (P2.X - P0.X) * (P1.Y - P0.Y)); return abc;...
C#
110,552
社区成员
642,562
社区内容
发帖
与我相关
我的任务
C#
.NET技术 C#
复制链接
扫一扫
分享
社区描述
.NET技术 C#
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
让您成为最强悍的C#开发者
试试用AI创作助手写篇文章吧
+ 用AI写文章