Coordinate type for List used with DrawablePolygon

Magick.NET is an object-oriented C# interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick.NET
Post Reply
tom_dl
Posts: 43
Joined: 2015-02-26T08:25:44-07:00
Authentication code: 6789

Coordinate type for List used with DrawablePolygon

Post 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!
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Coordinate type for List used with DrawablePolygon

Post by dlemstra »

`Coordinate` has been renamed to `PointD` at some point in time.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
tom_dl
Posts: 43
Joined: 2015-02-26T08:25:44-07:00
Authentication code: 6789

Re: Coordinate type for List used with DrawablePolygon

Post by tom_dl »

...that would explain a lot! Thanks for your quick reply.
Post Reply