473,396 Members | 1,689 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

I need to extend a graphicsPath

hello

I have a GraphicsPath that is a closed courve. How can I expand that path
with a certain ammount in all directions?

--
Ceers,
Crirus

------------------------------
If work were a good thing, the boss would take it all from you

------------------------------
Nov 20 '05 #1
2 1395
If I am reading your question correctly, you are asking how to rescale a
GraphicsPath.

Look at the GraphicsPath.ScaleTransform method.

http://msdn.microsoft.com/library/de...sformtopic.asp
--

Justin Weinberg
Designing a PrintDocument? Drawing to forms?
Check out GDI+ Architect at www.mrgsoft.com
"Crirus" <Cr****@datagroup.ro> wrote in message
news:eh**************@TK2MSFTNGP10.phx.gbl...
hello

I have a GraphicsPath that is a closed courve. How can I expand that path
with a certain ammount in all directions?

--
Ceers,
Crirus

------------------------------
If work were a good thing, the boss would take it all from you

------------------------------

Nov 20 '05 #2
Kind of, but how can I figure out how much should I translate the path after
a scale?

--
Ceers,
Crirus

------------------------------
If work were a good thing, the boss would take it all from you

------------------------------

"Justin Weinberg" <jweinberg@_spamkill_mrgsoft.com> wrote in message
news:Oa**************@TK2MSFTNGP10.phx.gbl...
If I am reading your question correctly, you are asking how to rescale a
GraphicsPath.

Look at the GraphicsPath.ScaleTransform method.

http://msdn.microsoft.com/library/de...sformtopic.asp

--

Justin Weinberg
Designing a PrintDocument? Drawing to forms?
Check out GDI+ Architect at www.mrgsoft.com
"Crirus" <Cr****@datagroup.ro> wrote in message
news:eh**************@TK2MSFTNGP10.phx.gbl...
hello

I have a GraphicsPath that is a closed courve. How can I expand that path with a certain ammount in all directions?

--
Ceers,
Crirus

------------------------------
If work were a good thing, the boss would take it all from you

------------------------------


Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Peter Rilling | last post by:
How can I shrink a GraphicsPath object by a specified number of pixels? I know that I can apply a matrix transform, but the Matrix class only has Scale which works from a percentage. I want to be...
1
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...
0
by: M G | last post by:
GraphicsPath path=new GraphicsPath(); path.Widen(new Pen(Color.Black,8)); generate OutOfMemory exception!
4
by: Don | last post by:
When creating a new region for a control via a GraphicsPath object, it appears the entire rightmost column of pixels and bottom most row of pixels are not included in the region. I will try to...
1
by: Mike | last post by:
The .NET class libary presents this as an example of GraphicsPath.IsVisible: Public Sub IsVisibleExample(ByVal e As PaintEventArgs) Dim myPath As New GraphicsPath myPath.AddEllipse(0, 0, 100,...
2
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...
1
by: PankajGaur | last post by:
Hi, I need to create a Ellipse shaped user control which have folloiwng attributes: 1) The edges are smooth 2) The control shuld only be selected when click on the ellipse shape & not when...
0
by: Peter Duniho | last post by:
On Thu, 01 May 2008 07:01:00 -0700, MrNobody <MrNobody@discussions.microsoft.comwrote: It would help if you could be more specific about how you're currently mapping mouse coordinates to...
0
by: =?Utf-8?B?UGFua2FqR2F1cg==?= | last post by:
Hi, I need to create a Ellipse shaped user control which have folloiwng attributes: 1) The edges are smooth 2) The control shuld only be selected when click on the ellipse shape & not when...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
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,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.