dispose() public method

public dispose ( ) : void
return void
Example #1
0
        static bool MyTest(Edge edge, int index, List <Edge> vector)
        {
            BitmapData delaunayLineBmp = edge.MakeDelaunayLineBmp();
            bool       notIntersecting = !(_keepOutMask.hitTest(zeroVector2, 1, delaunayLineBmp, zeroVector2, 1));

            delaunayLineBmp.dispose();
            return(notIntersecting);
        }
Example #2
0
        public void Dispose()
        {
            if (_delaunayLineBmp != null)
            {
                _delaunayLineBmp.dispose();
                _delaunayLineBmp = null;
            }
            _leftVertex  = null;
            _rightVertex = null;
            if (_clippedVertices != null)
            {
                _clippedVertices[LR.LEFT]  = PointF.Empty;
                _clippedVertices[LR.RIGHT] = PointF.Empty;
                _clippedVertices           = null;
            }
            _sites[LR.LEFT]  = null;
            _sites[LR.RIGHT] = null;
            _sites           = null;

            _pool.Add(this);
        }