Hi,

Sorry, on a phone now, so can't give examples. But I'm not sure I
understand what you want to do.

If two polygons happen to have the same coordinates, one will simply
be drawn on top of the other.

There is no automatic way to great a copy of a draw object -- you need
to create a new one with the same properties ( though copy.copy may
work -- I haven't tried it ).

If you want to change the coordinates, you can call Polygon.SetPoints(
theNewPoints )
Or

Polygon.Move()
If you want to keep it the same shape and move the whole thing.

HTH,

Chris

> On Aug 5, 2014, at 3:46 AM, Farrukh <[email protected]> wrote:
>
> Hi
> i have drawn polygon on floatcanvas and when i create duplicate shape
> that overwritten on same shape because of coordinates. my coorindates
> are like this
> [(-198.12865497076021, 355.08771929824559), (-210.9941520467836,
> 460.584795321
> 63739), (288.18713450292393, 512.046783625731), (321.63742690058479,
> 375.6725146
> 1988303), (108.07017543859648, 370.52631578947364), (133.80116959064327,
> 303.625
> 73099415204), (-198.12865497076021, 355.08771929824559)]
>
> now i don't know how i can change coordinates to new X, Y and preserving
> shape as it is. any help is appreciated.
>
> Farrukh
>
>
> ---
> This email is free from viruses and malware because avast! Antivirus 
> protection is active.
> http://www.avast.com
>
> _______________________________________________
> FloatCanvas mailing list
> [email protected]
> http://mailman.paulmcnett.com/cgi-bin/mailman/listinfo/floatcanvas
_______________________________________________
FloatCanvas mailing list
[email protected]
http://mailman.paulmcnett.com/cgi-bin/mailman/listinfo/floatcanvas

Reply via email to