Exemple #1
0
            public void Dispose()
            {
                var    arr = _elements.ToArray();
                SkRect rc;

                _geometryImpl._path?.Dispose();
                _geometryImpl._path =
                    new RefCountable <SkPath>(new SkPath(MethodTable.Instance.CreatePath(arr, arr.Length, out rc)));
                _geometryImpl.ApplyTransform();

                _geometryImpl.Bounds = rc.ToRect();
            }
Exemple #2
0
            public void Dispose()
            {
                // TODO: Not sure what we need to do here. This code left here for reference.
                //
                //	var arr = _elements.ToArray();
                //             SkRect rc;
                //             _path?.Dispose();
                //             _path = new SKPath(new SkPath(MethodTable.Instance.CreatePath(arr, arr.Length, out rc)));
                //             _geometryImpl.ApplyTransform();
                //             _geometryImpl.Bounds = rc.ToRect();

                SKRect rc;

                _path.GetBounds(out rc);
                _geometryImpl.ApplyTransform();
                _geometryImpl.Bounds = rc.ToPerspexRect();
            }