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)); }
static extern int gimp_vectors_stroke_new_from_points(Int32 drawable_ID, VectorsStrokeType type, int num_points, double[] controlpoints, bool closed);
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); }