Hallo Taugenichts,
kannst Dir mal die folgender Funktion anschauen:
Zitat:
Draws a pie-shaped the section of the ellipse bounded by the rectangle (X1, Y1) and (X2, Y2) on the canvas.
procedure Pie(X1, Y1, X2, Y2, X3, Y3, X4, Y4: Integer);
Description
Use Pie to draw a pie-shaped wedge on the image. The wedge is defined by the ellipse bounded by the rectangle determined by the points (X1, Y1) and X2, Y2). The section drawn is determined by two lines radiating from the center of the ellipse through the points (X3, Y3) and (X4, Y4).
The wedge is outlined using Pen, and filled using Brush.
Note: On Windows 95, the sums X1 + X2 and Y1 + Y2 cannot exceed 32768. Also, the sum X1 + X2 + Y1 + Y2 cannot exceed 32768.
Grüße
Klaus