473,400 Members | 2,163 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,400 software developers and data experts.

PolygonHotSpot Coordinates based on Graphics.FillPie Properties

Hi. I'm filling a system.drawings.graphics object with color using the the
FillPie method. I need to draw a PolygonHotSpot around that image. Is it
possible to determine the coordinates necessary to build a PolygonHotSpot for
that pie based on the properties I used Filling the pie? If so, could someone
give me some direction please?

Thanks,
Mike
Sep 19 '07 #1
2 2220
its simple geometry. you just need to decide how many splines for the
arc and whether the vertexes are inside or outside the arc. the simplest
is one spline, so you split the pie rectangle into a triangle.

-- bruce (sqlwork.com)
Mike wrote:
Hi. I'm filling a system.drawings.graphics object with color using the the
FillPie method. I need to draw a PolygonHotSpot around that image. Is it
possible to determine the coordinates necessary to build a PolygonHotSpot for
that pie based on the properties I used Filling the pie? If so, could someone
give me some direction please?

Thanks,
Mike
Sep 19 '07 #2
Thanks

"bruce barker" wrote:
its simple geometry. you just need to decide how many splines for the
arc and whether the vertexes are inside or outside the arc. the simplest
is one spline, so you split the pie rectangle into a triangle.

-- bruce (sqlwork.com)
Mike wrote:
Hi. I'm filling a system.drawings.graphics object with color using the the
FillPie method. I need to draw a PolygonHotSpot around that image. Is it
possible to determine the coordinates necessary to build a PolygonHotSpot for
that pie based on the properties I used Filling the pie? If so, could someone
give me some direction please?

Thanks,
Mike
Sep 19 '07 #3

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

Similar topics

1
by: phil cunningham | last post by:
I am new to C# and GDI+ so I may have missed a simple way of doing this. I am trying to use the mouse to pick object up by seeing if the mouse position is Inside the object. However, I am using...
6
by: Adam Clauss | last post by:
I have a list of points (their coming in as decimal types, I can convert to PointF) that I am trying to draw to a form. Unfortunately, the coordinate system these points are coming from is not...
2
by: Mark Raschi | last post by:
Hello all, Does anyone know of the best way to translate world coordinates to client coordinates. For example when i record the mouseposition it is in world coordinates. What if i want it in...
4
by: K.N.Ranjit | last post by:
Hi, This is the 4th mail I'm sending regarding this problem. I'm really not been able to sort this problem out.I'm not been able to change my starting position of my cordinates from top-left to...
4
by: Henry Wu | last post by:
Hi, I see examples of Magnifying an area under mouse coordinates to a form or picturebox using VB6 and VC6, does anyone know how to do it under VB.NET? Its nice to use the new GDI+ for it. ...
2
by: Ron Dahl | last post by:
I would like to permanently have the lower left portion of my graphics object be (0,0) and the coordinae values to increase to the right and upward. In other words, point(10,30) would be 20...
1
by: Ron Dahl | last post by:
Thanks Robby and Bob Powell for excellent answers on yesterday's question about reversing coordinates in gdi+ I guess this is a new question. My first step is that my bitmap is an aerial...
0
by: deko | last post by:
I'm trying to implement a custom TreeView that shows a ghost image while dragging. But the form I'm using is different from the sample code found here:...
0
by: =?Utf-8?B?TWlrZQ==?= | last post by:
Hi. Is it possible to fill the interior of a pie section with an image? Currently I am using the FillPie method to fill a pie with colors, but I need to use images instead of colors. Is this...
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: 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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.