コード例 #1
0
        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);
        }
コード例 #2
0
ファイル: Vectors.cs プロジェクト: unhammer/gimp-sharp
        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));
        }
コード例 #3
0
        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();
            }
        }