graphicspath

    1热度

    1回答

    我用下面的代码文本添加到图像: private void AddText(Graphics graphics, FontDetails fontDetails, Rectangle destination) { using (GraphicsPath graphicsPath = new GraphicsPath()) { graphicsPath.

    -1热度

    1回答

    我想使用GraphicsPath而不是数组的列表,因为我不知道将由用户创建的路径的数量。 List<GraphicsPath> PathDB = new List<GraphicsPath>(); 这之后我填名单如下: using(GraphicsPath myPath = new GraphicsPath()) { myPath.AddPolygon(myPoints);

    2热度

    4回答

    我已经写了一些代码,创建了一个圆角矩形GraphicsPath,基于自定义结构,BorderRadius(这让我定义左上角,右上角,左下角和右下角的半径矩形),初始Rectangle本身: public static GraphicsPath CreateRoundRectanglePath(BorderRadius radius, Rectangle rectangle) { Gra

    1热度

    1回答

    我正在尝试使用GraphicsPath绘制“文件夹”,如图像。 我的函数来创建的路径是: Public Function FolderRect(ByRef r As Rectangle) As System.Drawing.Drawing2D.GraphicsPath Dim p As New System.Drawing.Drawing2D.GraphicsPath Di

    0热度

    1回答

    我最近使用SkiaSharp碰到了一个路障。我一直在将旧的代码从System.Drawing移植到SkiaSharp。 GraphicsPath类有一个扁平方法,将曲线转换为一系列连接的线段。 https://msdn.microsoft.com/en-us/library/system.drawing.drawing2d.graphicspath.flatten(v=vs.110).aspx 我

    0热度

    2回答

    我使用矩阵放大了图形路径。我怎么能设定新的路径恰好在较小的路径上,而不在它的旁边?像长方形的充气。

    0热度

    1回答

    我试图做一个定制的PictureBox看起来像这样 - 到目前为止,我所做的是 - 使用此代码 - protected void UpdateRegion() { var path = new GraphicsPath(); Point[] points = { new Point(0, 0), new Point(0, C

    0热度

    1回答

    我想使用Clipper库来修改图形路径。 我有代表轮廓/笔画的宽度列表。我想从最大的第一个开始,并努力工作到最小。 在这个例子中,我们将增加2杆20和10 我想借此把我的图形路径的宽度,以及扩大/ 20个像素偏移到一个新的图形路径。我不想改变原来的路径。然后我想用纯色填充新的图形路径。 接下来,我想采取我原来的图形路径,并将它扩大/偏移10个像素到一个新的图形路径。我想用不同的颜色填充这条新路径。

    -2热度

    1回答

    图形的起始点是否可以设置?例如,当我将一个字符串添加到路径中,然后绘制该路径时,起始点通常会有所不同,那么是否有设置起点的方法? 也有任何方式来阅读使用VB.net AI或SVG文件? 谢谢。

    0热度

    1回答

    我正在使用Mitov的Delphi IGDIPlus库。 我在完全无辜的情况下得到异常“通用错误”。 我有五个重叠的矩形,并希望使用aPath.outline()来查找轮廓路径(我在Win7上运行此示例,并应用了所有轮廓相关的修补程序)。 uses System.Types, IGDIPlus, VCL.IGDIPlusExt; procedure TForm1.FormPaint(Sen