Hello.
I have a question concerning the Graphics.DrawPa th method.
Where is the border drawn using a pen with the size of 3?
It doesn´t seem that the border is drawn outside of the path (just a
rectangle in my case) or completely inside the path.
For me it looks like this with b=border and p = path:
b
bp (overlapping)
bp (overlapping)
p
p
Unfortunately I have nothing found searching the MSDN or the net.
Thanks for any trustable resources or help!
Greetings,
Tim. 3 4296
Hi Tim,
Try specifying the Pen's PenStyle before using it.
--
Happy coding!
Morten Wennevik [C# MVP]
My bad, PenStyle should of course be Pen.Alignment :P.
That said, I'm not sure how you can manage an overlap on a simple rectangle. Are you sure you set the points correctly?
--
Happy coding!
Morten Wennevik [C# MVP]
Thanks for answering!
I?ll have a look at the different pen styles...
Greetings,
Tim.
"Morten Wennevik" <Mo************ @hotmail.com> schrieb im Newsbeitrag
news:opr9bkh5kp klbvpo@morten_x .edunord... My bad, PenStyle should of course be Pen.Alignment :P.
That said, I'm not sure how you can manage an overlap on a simple
rectangle. Are you sure you set the points correctly? -- Happy coding! Morten Wennevik [C# MVP] This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Dave |
last post by:
I've got a PictureBox where the end user can draw rectangles, lines,
ellipses and freehand on an image. Everything works fine, except for an
occasional OutOfMemoryException. It only occurs when drawing freehand and
there's already a figure (StartFigure is called again), the first line is
added to the figure and DrawPath is called. The exception occurs (only
occasionally) when the call is made to DrawPath. It only happens when the
pen...
|
by: Altramagnus |
last post by:
I have a complicated Region object, which I need to draw the outline, but
not fill
How can I convert the Region object to GraphicsPath object?
or How can I draw the outline of the Region object?
|
by: Altramagnus |
last post by:
I have n number of circles. Some of them might overlap.
I need to draw the outline of all circles but not those overlap areas.
Initially, I am try to use a Region, because a Region object has a Union
function
Creating a GraphicsPath of 1 circle is easy. So I convert each GraphicsPath
to a Region and then Union them.
But I could not get back a GraphicsPath of the Unioned Region.
Does anyone know how to solve my problem?
|
by: jay |
last post by:
I have a bitmap and a graphicspath object. I draw pixels on m_Bitmap and I'm
drawing text using m_Graphics GraphicsPath object.
However, saving my work with m_Bitmap.Save doesn't save GraphicsPath along
with it.
How do I save it all in a single file? Or how do I "glue" graphicspath to
bitmap so they save together?
thanks,
|
by: jay |
last post by:
Hi!
I'm using this code to add text to the GraphicsPath m_Gpath:
m_Gpath.AddString(m_objectLabel, otherFont.FontFamily,
(int)otherFont.Style, (int)otherFont.Size, new Point(m_MouseX,
m_MouseY), StringFormat.GenericDefault);
I'm using this code to paint Bitmap m_Bitmap on a picture control:
| |
by: Crirus |
last post by:
Hi
Is that true that this IsVisible method is incredible slow?
Seems that my app is much slower with only this added as a condition to draw
something
Crirus
|
by: Miro |
last post by:
Hello!
I have a webpage (FW1.1) in which some heavy drawing takes place (code
behind). In some cases I call the DrawPath(...) function 20 000-30 000 times.
This works well everywhere except in one environment. The time to draw the
geometries is about 20-30 times higher than everywhere else. What could be
the cause?
Basically what the code does, is that it gets some data from an Oracle
database, uses a Graphics object (created from a...
|
by: cmbardon |
last post by:
I'm trying to create a form with some rounded controls, and I'm having
some problems with the rounding not working correctly. I've tried a
couple of different methods for creating the graphics path, including
the one from the GDI+ FAQ. It's a pretty simple path, and
mathematically it looks just fine. When I apply it to a control
though, I have two problems. First, the corners on the right side of
the control are obviously not rounded...
|
by: Martijn Mulder |
last post by:
/*
GraphicsPath.IsVisible() gives unexpected results. I fill a
System.Drawing.Drawing2D.GraphicsPath-object with PointF-structures
that define the unit-square (0,0), (1,0), (1,1) and (0,1). Then I
test 3 different PointF-structures to see if they fall inside the unit-
square and the results are clearly wrong:
Point(-0.2, -0.2) falls inside the unit square... WRONG!!!
Point(0.2, 0.2) falls inside the unit square...
Point(0.7, 0.7) falls...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |