예제 #1
0
        public void ClearThumbnail()
        {
            pbThumbnail.Image = null;

            if (ThumbnailImage != null)
            {
                ThumbnailImage.Dispose();
                ThumbnailImage = null;
            }

            ThumbnailSourceFilePath = null;
        }
예제 #2
0
        public void Dispose()
        {
            if (ThumbnailImage != null)
            {
                ThumbnailImage.Dispose();
                ThumbnailImage = null;
            }

            if (Image != null)
            {
                Image.Dispose();
                Image = null;
            }
        }
예제 #3
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (OriginalImage != null)
         {
             OriginalImage.Dispose();
             OriginalImage = null;
         }
         if (ThumbnailImage != null)
         {
             ThumbnailImage.Dispose();
             ThumbnailImage = null;
         }
         if (FilteredImage != null)
         {
             FilteredImage.Dispose();
             FilteredImage = null;
         }
     }
 }