public void ToArray() { var list = new CoordinateList <int>(); var c = new Coordinate <int>(13, 14); int[] array = list.ToArray(); Assert.IsNull(array); list.Add(c); array = list.ToArray(); Assert.AreEqual(2, array.Length); }
public Stroke NewFromPoints(VectorsStrokeType type, CoordinateList <double> controlpoints, bool closed) { var tmp = controlpoints.ToArray(); int strokeID = gimp_vectors_stroke_new_from_points(_ID, type, tmp.Length, tmp, closed); return(new Stroke(_ID, strokeID)); }
public void Select(CoordinateList <double> segs, ChannelOps operation, bool antialias, bool feather, double featherRadius) { var array = segs.ToArray(); if (!gimp_free_select(_imageID, array.Length, array, operation, antialias, feather, featherRadius)) { throw new GimpSharpException(); } }