dispose() 공개 메소드

public dispose ( ) : void
리턴 void
예제 #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);
        }
예제 #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);
        }