Questions tagged [graphicspath]
96 questions
2
votes
2 answers
c#:Check for point on ellipse
i have a bool function that checks for points if it is on the ellipse.Also, the user can move his mouse near the ellipse path to select the ellipse in order to move it to a new location.
I checked for the corner points of the bounding rectangle of…

Pratik Pattanayak
- 194
- 4
- 23
2
votes
2 answers
Creating an array of graphic paths in vb.net
I dont know Why I am having trouble with this, but I keep getting 'not set to an instance of an object' exception every time.
Does this make sense?
I have this declared in the main form
Private _Paths() As System.Drawing.Drawing2D.GraphicsPath
and…

Mr Dog
- 396
- 1
- 3
- 22
2
votes
2 answers
Should the GraphicsPath be disposed after use
I am making some utility classes that make different types of symbols to place onto an elevation of CAD drawings.
I want to make sure that if I need to dispose of the GraphicsPath object that I do so.
In the code below from inside the getCircle…

Filling The Stack is What I DO
- 6,553
- 14
- 54
- 86
2
votes
1 answer
Changing the position of an android.graphics.Path on a canvas
I've been browsing for some days now, but I can't seem to find a way to do this. I hope that maybe some of you are more experienced then I am with the Android SDK and its abilities :)
Say you draw the path on the canvas with the upper- and left-most…

kamillan
- 115
- 1
- 8
2
votes
1 answer
Is there a way to get GraphicsPath of a window?
I'm trying to frame a window using GDI+ Graphics class in OnPaint(). Since DrawPath() function requires GraphicsPath, Is there a way to get GraphicsPath of a window ?

ivymike
- 1,511
- 2
- 20
- 27
1
vote
0 answers
C# - Winforms button corners rounded differently with GraphicsPath
In this previous question, soulblazer and TaW both offered solutions and provided screenshots, for creating rounded button corners.
Rounded edges in button C# (WinForms)
Both of these screenshots show that the top-left corner is well-rounded, the…

ShaunHunter
- 25
- 6
1
vote
1 answer
DrawPath(Pen,GraphisPath) is throwing OutOfMemoryException
I've been over this for a couple of time and can't figure it out. the method DrawPath is throwing a System.OutOfMemoryException.
I've seen that the pen.DashPattern is actually throwing System.OutOfMemoryException as well, so I set the dash pattern,…

Diogo
- 316
- 5
- 11
1
vote
1 answer
Get the position where drawn text is truncated by GraphicsPath.DrawString
I have a couple of methods that draw outlined text. The details of this are unimportant, but it serves to illustrate the problem:
(source code from Graphics DrawPath produces unexpected results when rendering text)
Private Sub FillTextSolid(g As…

stigzler
- 793
- 2
- 12
- 29
1
vote
0 answers
FillPath Union of Polygons in a Inclusive(non-XOR) Fashion
I need to fill a complex region with anti-aliasing.
The region is composed of numerous rotated rectangles (as of petal of a sunflower) and a central circle.
Region does not support anti-aliasing
so I tried FillPath but areas where rectangles overlap…

Jeffrey Goines
- 935
- 1
- 11
- 30
1
vote
0 answers
C# How can I fill the intersection between two GraphicsPath with the color of the last one drawn?
I have to develop a painting application in C# using the mouse movement, so I decided to use a List of GraphicsPath where I store the path for each drawing (consider the drawing as the path painted between a mouseDown and mouseUp event). Each path…

MarioAF
- 23
- 4
1
vote
0 answers
What is PathData.Types for GraphicsPath and how to use them values?
I am wanting to write a string to a GraphicsPath object in c# like below
'
path = new GraphicsPath();
path.AddString("Hello World", FontFamily.GenericSansSerif, 1, 80, new Point(0, 0), StringFormat.GenericDefault);
'
But I then want to take…

Chris Crowe
- 333
- 1
- 9
1
vote
0 answers
Click event not triggering from usercontrol drawn with graphicsPath
I create an usercontrol with graphicspath. When i assign a click event in my main winform class, it doesn't fire when the usercontrol is clicked upon. I thought this had something to do with the region of the usercontrol so i created a new region…

Maxime Callebaut
- 21
- 4
1
vote
1 answer
Arc graphic quality
Back here. Is there any way to improve the quality of the Arc?
I'm using e.Graphics.SmoothingMode = SmoothingMode.AntiAlias
This is the piece of code that creates the arc:
using (GraphicsPath gp = new GraphicsPath())
{
e.Graphics.SmoothingMode…

Nane
- 318
- 1
- 8
- 18
1
vote
1 answer
How can I draw multi-colored text using graphics class on panel?
I want to draw the following text on panel:
It is a multi-colored text.
I found this article about drawing multicolored text.
I replaced characters with words but it doesn't work.
(I use FillPath/DrawPath to draw text)
my code:
private void…

Rasool g
- 11
- 1
- 4
1
vote
0 answers
GraphicsPath font "centerline" of font (for engraving)
I am writing own custom application for engraver. I can send vector data (lines) to it.
Using GraphicsPath.AddString and retrieving it (using PathPoints and PathTypes) gives me only outline of the font (lines defining the shape but I need line…

Abit Gray
- 81
- 6