Beispiel #1
0
 public void Dispose()
 {
     if (!disposed)
     {
         FreeImageApi.Unload(m_Handle);
         if (m_MemPtr != IntPtr.Zero)
         {
             FreeImageApi.CloseMemory(m_MemPtr);
         }
     }
     disposed = true;
     //FreeImageApi.DeInitialize();
 }
Beispiel #2
0
        internal void DisposeAndSetHandle(int hwnd)
        {
            FreeImageApi.Unload(m_Handle);

            m_Handle = hwnd;
        }