filledPath/Shaded: Unable to get Offsets
Please Login to Remove!
Hi
I'm trying to draw a polygon using the Offset argument given in filledPath and drawShadedFilledPath methods under Graphics class.
I have even tried to draw a simple square with it.But every time i get IllegalArgumentException.
I'm able to see the square , if i set the offests to null.hence, i think theres something with offests only.
the arrays are something like.
x[]= { 10,10,25,85,100,100};
y[]= {20,5,5,5,5,20};
offset[]={0,3,4,6};
It would be veru helpful , i you can explain my mistake or help me understand the way these offsets work.
Thanks!
|