Tag Archives: pie slice

Animate exploding 3-dimensional pie slices in C#

The example Draw 3-dimensional pie slices in C# shows how to highlight one or more 3-D pie slices by “exploding” them. This example draws even more attention to the exploded pie slices by animating their explosion. The program controls the … Continue reading

Posted in algorithms, animation, graphics, mathematics, multimedia | Tagged , , , , , , , , , , , , , , , , , , | Leave a comment

Draw 3-dimensional pie slices in C#

The example Fill and draw pie slices in C# shows how to draw a normal pie slice. Drawing a three-dimensional pie slice is a little harder. This example draws a three-dimensional pie slice in five steps: Make two regular pie … Continue reading

Posted in algorithms, graphics, mathematics | Tagged , , , , , , , , , , , , , , , | 4 Comments

Draw an annotated pie chart in C#

The example Draw a labeled pie chart in C# explains how to draw a pie chart with labeled slices. This example adds annotations attached to the slices by lines. The following code shows how the program draws, labels, and annotates … Continue reading

Posted in algorithms, graphics, mathematics | Tagged , , , , , , , , , , , , , , | Leave a comment

Draw a labeled pie chart in C#

The example Draw a pie chart in C# shows how to draw a simple pie chart. This example adds labels to the pie slices. This example uses the following code to draw its pie chart. // Draw the pie chart. … Continue reading

Posted in algorithms, graphics, mathematics | Tagged , , , , , , , , , , , , , | 1 Comment

Draw a pie chart in C#

This example shows how to draw a pie chart by using the techniques described in the post Fill and draw pie slices in C#. This example uses the following DrawPieChart method to draw a pie chart for an array of … Continue reading

Posted in algorithms, graphics, mathematics | Tagged , , , , , , , , , , , , | 1 Comment

Determine which pie slice is under the mouse in C#

When the program starts, the following code initializes the pie chart’s parameters. // The pie chart’s center. private Point EllipseCenter; // The pie chart’s drawing area. private Rectangle EllipseRect; // The ellipse’s X and Y radii. private float EllipseRx, EllipseRy; … Continue reading

Posted in algorithms, drawing, graphics, mathematics | Tagged , , , , , , , , , , , , , , | Leave a comment