Questions tagged [graphicspath]

96 questions
0
votes
0 answers

is it possible to achieve bevelled text and drop shadows using GDI in c#?

I'm looking to expand my 'simple' photography events system to add the ability to add custom text to images we've shot. I technically have this aspect working using the existing picturebox control to display the image and a text box in which text…
0
votes
0 answers

Incorrect behavior for GDI+ to draw large polygon with inner ring

I have a problem using GDI+ to draw a polygon which has a inner ring, I'm expecting the result to be blank because the current screen is inside the inner ring, but I got a solid fill result; If I scale down the outer ring, I can get the correct…
Edgar
  • 273
  • 1
  • 3
  • 12
0
votes
2 answers

Drawing getbounds rectangle or rectangleF?

I have a List with float coordinates and I'm trying to draw a rectangle around a line previously drawn. Graphics G = e.Graphics; Pen pen5 = new Pen(Color.DodgerBlue, 0.01f); var rect2 = new RectangleF(); GraphicsPath maliOkvir = new…
Romy
  • 407
  • 6
  • 25
0
votes
1 answer

How do I draw a transparent rectangle?

I am nearly there with this ... :) I have implemented my own double buffer ... So I create a bitmap: if (_Bitmap != null) _Bitmap.Dispose(); if (_Graphics != null) _Graphics.Dispose(); _Bitmap = new Bitmap(Bounds.Width,…
Andrew Truckle
  • 17,769
  • 16
  • 66
  • 164
0
votes
0 answers

Can I set a region to a diagonal line?

I learnt from someone yesterday about graphic paths and a rectangle edge and how I could set a inner excluded rectangle. But now I want to invalidate just a diagonal line: using (Graphics g = Graphics.FromHwnd(this.Handle)) { if…
Andrew Truckle
  • 17,769
  • 16
  • 66
  • 164
0
votes
1 answer

gdiplus Path GdipWindingModeOutline troubles

I am using Mitov's IGDIPlus library for Delphi. I am getting Exception "Generic Error" in a completelly innocent situation. I have five overlapping rectangles and would like to use aPath.outline() to find outline path (I am running this example on…
EvaF
  • 1
  • 1
0
votes
0 answers

Graphics Path types not in the document

I'm using C# class GraphicsPath to change the text into vector. here is the code GraphicsPath path = new GraphicsPath(); FontFamily family = new FontFamily( "Arial" ); int fontStyle = (int)FontStyle.Regular; int…
jobamei
  • 11
  • 6
0
votes
1 answer

how to move GraphicsPath onMouseMove

am using GraphicsPath to draw Lines so it's like Pen/Brush tool in Paint public void OnMouseDown(object sender, MouseEventArgs e) { start = e.Location; path.AddLine(e.Location, new Point(e.Location.X, e.Location.Y)); } …
Abanoub
  • 3,623
  • 16
  • 66
  • 104
0
votes
1 answer

How to create a clip region from a path that includes the 'outline'?

I am creating a rounded rectangle GraphicsPath (see red outline image below), and then using this as a clip region both when drawing graphics, and as the Region of a Form. Unfortunately, although the path looks good, it doesn't work well as a…
mackenir
  • 10,801
  • 16
  • 68
  • 100
0
votes
1 answer

IronPython: Creating & Adding An Array Of Points To A GraphicsPath

Greetings; I'm having a bit of trouble correctly instantiating an Array of System.Drawing.Point instances, and then adding the Array of Points to a GDI+ GraphicsPath instance using IronPython in a WinForms application. The following code compiles…
ClockEndGooner
  • 672
  • 1
  • 12
  • 24
0
votes
1 answer

Redraw Graphics Path when mouseMoved

I' ve drawn roundRectangle using Graphics Path OnPaintEvent and I already added mouseevent to know if cursor was over the g.p . void Round_MouseMove(object sender, MouseEventArgs e) { Point mousePt = new Point(e.X, e.Y); …
Elegiac
  • 361
  • 2
  • 15
0
votes
1 answer

XNA GraphicsPath.AddLines seems to have gaps

Noticed some strange behaviour that seems to defy the point of C# GraphicsPath.AddLines. AddLines is a series of Connected line segments. The following code seems to make this not true: Bitmap BuildingBitmap = new Bitmap(MaxX - MinX, MaxY -…
Brent
  • 1
  • 1
0
votes
1 answer

How to join or blend two ellipses together when they overlap

Was wondering if there was a function for blending ellipses when they make contact with each other. I was thinking about a GraphicsPath object since it adds objects to it's path. If there is a term for this I do not know what it would be so…
OneFineDay
  • 9,004
  • 3
  • 26
  • 37
0
votes
1 answer

Dynamically removing/adding(cancel the removal) form area in c#

How do i dynamically removing/adding(cancel the removal) form area using region and graphics path class
Suriyan Suresh
  • 2,964
  • 14
  • 51
  • 80
0
votes
2 answers

GraphicsPath AddArc

I'm trying to create a popup bubble with a round rectangle and a thingy at the bottom which I circled with green on the image bellow: But as you have guessed this isn't how i want it to look but instead: I figured out how to draw it as i should…
Igor Meszaros
  • 2,081
  • 2
  • 22
  • 46