Ejemplo n.º 1
0
        /// <summary>
        /// Release all allocated/locked resources
        /// </summary>
        public void Dispose()
        {
            if (MasterBitmap != null)
            {
                MasterBitmap.Dispose(); MasterBitmap = null;
            }
            if (CapturedBitmapBeforeFilters != null)
            {
                CapturedBitmapBeforeFilters.Dispose(); CapturedBitmapBeforeFilters = null;
            }
            if (CapturedBitmap != null)
            {
                CapturedBitmap.Dispose(); CapturedBitmap = null;
            }

            if (MasterModel != null)
            {
                MasterModel.Close(); MasterModel = null;
            }
            if (CapturedModelBeforeFilters != null)
            {
                CapturedModelBeforeFilters.Close(); CapturedModelBeforeFilters = null;
            }
            if (CapturedModel != null)
            {
                CapturedModel.Close(); CapturedModel = null;
            }
        }