Questions tagged [graphicspath]

96 questions
1
vote
0 answers

GdiPlus : Region from a GraphicPath without filling it

I need to get a Gdi+ Region from a GraphicPath without filling it, and I don't know how to do it. A draw is better than words, so here is what I want to do : What I want to do I have an ellipse, than I want to be displayed unfilled (whith a known…
Alex
  • 11
  • 2
1
vote
1 answer

Does SkiaSharp have an equivalent Flatten method to System.Drawing?

I have hit a road block using SkiaSharp recently. I have been porting older code from System.Drawing to SkiaSharp. The GraphicsPath class had a flatten method which converted the curves to a series of connected line…
Particleman
  • 661
  • 2
  • 7
  • 19
1
vote
0 answers

C# GraphicsPath AddPolygon FillPath aliasing

I get a big series of points with the guarantee that it's a valid "shape" like a star, crescent, anything. The last point always equals the first point. It draws fine every time but the aliasing is nasty. I tried a lot of things but there is no…
Ready Cent
  • 1,821
  • 3
  • 18
  • 25
1
vote
1 answer

Converting the path of a Rectangle into a GraphicPath/Region

I am learning about GraphicsPath and Region. And using it with Invalidate. So, I have a Rectangle object and I want to erase this rectangle. But, I only want to erase the edge of the rectangle (that is, the lines). At the moment I have…
Andrew Truckle
  • 17,769
  • 16
  • 66
  • 164
1
vote
1 answer

C# GraphicsPath adding text with opacity

I'm using the following code to add text to a image: private void AddText(Graphics graphics, FontDetails fontDetails, Rectangle destination) { using (GraphicsPath graphicsPath = new GraphicsPath()) { …
William Troup
  • 12,739
  • 21
  • 70
  • 98
1
vote
1 answer

GraphicsPath AddLine creates unexpected path

I am trying to draw a "folder" like image using a GraphicsPath. My function to create the path is the following: Public Function FolderRect(ByRef r As Rectangle) As System.Drawing.Drawing2D.GraphicsPath Dim p As New…
Maiken Roskilde
  • 447
  • 3
  • 14
1
vote
1 answer

Drawing pictureBox c#

i'm trying to make a customized picturebox that looks like this - So far, all i've made is - using this code - protected void UpdateRegion() { var path = new GraphicsPath(); Point[] points = { new…
DeaDViruS
  • 125
  • 9
1
vote
0 answers

Clipping GraphicsPath without using Graphics.SetClip()

In general, the problem is quite simple. I need to crop GraphicsPath by rectangle and result of the operation must be another GraphicsPath. Graphics.SetClip() does what I need but I can't get cropped GraphicsPath as output and ideally I want to…
Max
  • 31
  • 3
1
vote
1 answer

Draw a GraphicsPath in a PDF

I am trying to create a PDF based on some vector art I have in my C# application. I have two major problems when I try to map the points and types from a GraphicsPath. Some paths are just plain missing. When a sub path is an internal boundary I…
Kleinux
  • 1,511
  • 10
  • 22
1
vote
1 answer

GraphicsPath doesn't always refresh itself

The simple curve in this application only appears when it's dragged off the screen, or the window is resized. When the application just starts up it doesn't appear, and when the window is maximized or minimized it also disappears. However, all of…
Bibendum
  • 502
  • 4
  • 7
  • 18
1
vote
2 answers

Graphics does not draw GraphicsPath with Line

I have a Windows Forms app where I add different figures(rectangles, circles, etc.) to the main form. The figure is a UserControl and it's shape I define with GraphicsPath. Method for adding new figure: void AddElement(ShapeType shape, string…
Gyuzal
  • 1,581
  • 10
  • 52
  • 99
1
vote
1 answer

AddArc c# - Explain

I want to add arc to my draw using c# code. the syntax is: AddArc( int x, int y, int width, int height, float startAngle, float sweepAngle) Can someone describe me what are the width, the height start and sweep angle? Thank…
John
  • 2,015
  • 5
  • 23
  • 37
1
vote
3 answers

How to determine endpoints of Arcs in GraphicsPath PathPoints and PathTypes arrays?

I have the following PathPoints and PathTypes arrays (format: X, Y, Type): -177.477900, 11021.670000, 1 -614.447200, 11091.820000, 3 -1039.798000, 10842.280000, 3 -1191.761000, 10426.620000, 3 -1591.569000, 10493.590000, 3 -1969.963000,…
Tim Cochran
  • 1,834
  • 2
  • 15
  • 13
1
vote
1 answer

need to draw an Google marker image via C# Graphics

I need to draw an Google marker image via C# Graphics for that i;ll need the exact coordinates of Google marker how can i do that Please help . My Current Code is . private void Shape8(PaintEventArgs e) { …
Arry
  • 29
  • 5
1
vote
1 answer

Fill graphics path with two colors

I'm drawing some glyphs in a WinForms application. Each glyph is defined by a graphics path, basically is a rectangle with rounder corners. Now I fill the graphics path with a single color, but I need to fill with two colors. The following example…
Daniel Peñalba
  • 30,507
  • 32
  • 137
  • 219