Questions tagged [graphicspath]

96 questions
1
vote
1 answer

Using GraphicsPath to draw roads on a map image

I have an application (WinForms C#) that allows users to draw a line (free draw) to highlight roads of interest on a bitmap taken from Google Maps. I am using the Mouse Down/Move/Up events to add points to a GraphicsPath object. This works well for…
Raheel Khan
  • 14,205
  • 13
  • 80
  • 168
1
vote
1 answer

Using Angus J Clipper library to outline GraphicsPath text in vb.net

I am creating text in a GDI+ GraphicsPath, using DrawString, and then outputting this to PDF as a path. This is all working perfectly at the moment. The time I have an issue is when the chosen font causes the outlines to overlap each other. I have…
Darren Wainwright
  • 30,247
  • 21
  • 76
  • 127
1
vote
1 answer

Adding an arc to a rectangle using GraphicsPath

I am trying to draw a top view of an IC package, which should look like this (sorry I couldnt even draw it good enough using windows's paint!) I am using a path obeject, but the result of my path object is no where near what I expect. Atleast the…
Dumbo
  • 13,555
  • 54
  • 184
  • 288
1
vote
1 answer

Draw border just inside non-transparent portion of image

this thread is almost what I need: Creating a GraphicsPath from a semi-transparent bitmap but he is drawing an outline AROUND the image - I need to draw one just a couple of pixels INSIDE the image. basically I'm trying to draw a "Focus Rectangle"…
JeZteR
  • 17
  • 1
  • 6
0
votes
1 answer

Create a Region or GraphicsPath from the non-transparent areas of a bitmap

I want to hit-test a drawn bitmap to see if a given Point is visible in the non-transparent pixels of the image. For example, to do this test for the whole bitmap rectangle, you would do something like this: Bitmap bitmap = new…
Trevor Elliott
  • 11,292
  • 11
  • 63
  • 102
0
votes
1 answer

Create a new picture along the GraphicsPath

Is there some way to copy a GraphicsPath and the enclosed figure into a new picture? I have the rectangle, the points of the GraphicsPath available. The path is definitely in the rectangle. I already googled but the result is poor. So far, I can…
Daniel
  • 374
  • 1
  • 12
0
votes
1 answer

How to prevent the start of a curve being joined to the end of the curve, when drawing with a graphicspath

I aim to create a flexible progress bar, for use in a simple game. I am drawing a curve ( spline ), then extracting the points into a list. I then have an option: I can either use the last point to draw the position of the player - or connect all…
Pete D.
  • 11
  • 2
0
votes
1 answer

Implementing Matrix Transform on New Object

I need to be able to transform one of my own objects along with some GraphicsPath objects in .Net. I need any scaling, translation, rotation operations that are performed on the GraphicsPath objects to also occur on my own object. For example, here…
Flipster
  • 4,373
  • 4
  • 28
  • 36
0
votes
2 answers

GDIPlus Gradient along a circular GraphicsPath

I have a "donut" in a graphics path. I would like to draw a gradient along that path and control when a color starts and ends by a given start and end angle on the circle. Like…
Aviel
  • 41
  • 1
  • 6
0
votes
0 answers

GraphicsPath.AddArc() C# not working as expected

I am trying to create a GraphicsPath object using some coordinates from a DXF file. I catch the coordinates in the following order and values as seen below: LINE found... LINE -> |X1: 10 |Y1: 81 |X2: 10 |Y2: 105 ARC found... ARC -> |X: 5 |Y: 105…
f4d0
  • 1,182
  • 11
  • 21
0
votes
0 answers

C# Rendering a GraphicsPath using OpenTK

I am programming in C# and using OpenTK (openGL library) to Render 3D. I have a System.Drawing.Drawing2D.GraphicsPath that I need to render in 3D space. So far I was able to render a rough outline like this... GraphicsPath path = new…
Dennis Ranish
  • 573
  • 1
  • 4
  • 18
0
votes
0 answers

Dynamic Zoom on GraphicsPath using GDI+ matrix transforms

I am trying to implement a dynamic zoom on a GraphicsPath where the user draws a rectangle to define a zoom area (see selectRect in the code below). When the user releases the mouse the GraphicsPath is scaled and translated (by a matrix) to the…
Pistols
  • 1
  • 2
0
votes
0 answers

Hittesting a Path which may be very dense

I am working on a UserControl which displays many line segments. This is done with a GraphicsPath. When the user moves the mouse a hittest is done to check if it is over any of the line segments, the cursor is changed accordingly, the line can then…
WarpEnterprises
  • 155
  • 1
  • 8
0
votes
2 answers

C# longest distance from a straight line to a user input graphicpath

I have a GraphicsPath defined by a PointF array (created by mouse clicks), which is drawn by Graphics.DrawCurve. The Path is then Transformed to rotate the start and end points to 0 degrees. The transformed and rotated curve (and the original curve)…
Andy Stagg
  • 373
  • 5
  • 22
0
votes
0 answers

Generate a color range selection from an image

I have an image and I would like to create a GraphicsPath representing a selection on the image based on some sort of thresholding on the pixels making up the image. For instance a color range algorithm that takes into account pixels with color…
Mauro Ganswer
  • 1,379
  • 1
  • 19
  • 33