예제 #1
0
 public void DisposeImage()
 {
     if (LocalPix != null)
     {
         LocalPix.Dispose();
     }
     Clear();
     ClearPersistentCache();
     ClearAdaptiveClassifier();
 }
예제 #2
0
 public void Dispose()
 {
     if (handleRef.Handle != null && handleRef.Handle != IntPtr.Zero)
     {
         if (localPix != null)
         {
             localPix.Dispose();
         }
         Clear();
         ClearAdaptiveClassifier();
         End();
         ClearPersistentCache();
         Native.DllImports.TessBaseAPIDelete(handleRef);
     }
 }
예제 #3
0
 private void OnPageDisposed(object sender, System.EventArgs e)
 {
     page.Disposed -= OnPageDisposed;
     // dispose the pix when the page is disposed.
     pix.Dispose();
 }