计算与多边形的几何偏移 [英] Calculate geometric offset from a polygon
问题描述
我正在尝试从多边形执行偏移功能.
我必须偏移的主要多边形是这样的:
______________________
| |
| |
| |
_____ | |
| |
| |
| |
| ___________________________ |
有人可以帮我还是可以把我送到哪里找我?
感谢帮助.
Hi,
I''m trying to do an Offset function from a polygon.
The main polygon that I have to offset is somethings like this:
______________________
| |
| |
| |
_____| |
| |
| |
| |
|___________________________|
Can someone help me or send me where I can find help?
Appreciate the help.
推荐答案
取决于您的多边形是什么(图像,点数组等),您可能可以使用矩阵转换.如果是这样,使用.NET GDI +的C#中的图像矩阵转换 [
Depending on what your Polygon is (Image, Array of Point etc....) you might be able to use a Matrix Translation. If so Matrix Transformation of Images in C#, using .NET GDI+[^] might be of some use.
也许如果您解释了您要尝试的操作...
Perhaps if you explain what you''re trying to do...
要偏移多边形,您要做的就是将所需尺寸的偏移量添加到每个顶点/坐标.
To offset the polygon, all you have to to is add the offset, in required dimension, to each vertex/coordinate.
这篇关于计算与多边形的几何偏移的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!