Fillpie problemer
Hej alleJeg har et problem med funktionen Fillpie, som ligger under Graphics ...
Når jeg bruger funktionen, kan jeg ikke finde ud af at placere de rigtige koordinater, for at få den til at sidde det rigtige sted.
Dokumentationen siger:
-------------------------------------
brush
Brush object that determines the characteristics of the fill.
x
x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie section comes.
y
y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie section comes.
width
Width of the bounding rectangle that defines the ellipse from which the pie section comes.
height
Height of the bounding rectangle that defines the ellipse from which the pie section comes.
startAngle
Angle in degrees measured clockwise from the x-axis to the first side of the pie section.
sweepAngle
Angle in degrees measured clockwise from the startAngle parameter to the second side of the pie section.
-------------------------------------
Den synes jeg bare ikke jeg kan få til at passe.
Er der nogen der kan forklare de forskellige parametre der skal med, når nu jeg bruger funktionen:
[C#]
public void FillPie(
Brush brush,
int x,
int y,
int width,
int height,
int startAngle,
int sweepAngle
);
På forhånd tak!
Mvh
