Page 1 of 1

Coordinate type for List used with DrawablePolygon

Posted: 2017-11-02T07:31:15-07:00
by tom_dl
Magick.NET version 7.0.7.700-Q16-x64

I'm trying to draw a polygon on my image. Apparently this needs a list of coordinates. I've found this code online:

Code: Select all

List<Coordinate> coordinates = new List<Coordinate>();
    coordinates.Add(new Coordinate(0, 0));
    coordinates.Add(new Coordinate(500, 100));
    coordinates.Add(new Coordinate(200, 400));
But I can't find which namespace the Coordinate class comes from.

I'm a newbie at .NET so I'm probably missing something fairly obvious. Thanks for any help!

Re: Coordinate type for List used with DrawablePolygon

Posted: 2017-11-02T14:11:19-07:00
by dlemstra
`Coordinate` has been renamed to `PointD` at some point in time.

Re: Coordinate type for List used with DrawablePolygon

Posted: 2017-11-02T15:02:02-07:00
by tom_dl
...that would explain a lot! Thanks for your quick reply.