예제 #1
0
 public void Save(Stream stream, ImageFormat imageFormat, int quality)
 {
     if (this._disposed)
     {
         throw new ObjectDisposedException("CompactImage");
     }
     if (this._handle != IntPtr.Zero)
     {
         Native.RIL_Save(this._handle, stream, imageFormat.ToString(), quality);
     }
 }
예제 #2
0
 public void Save(string path, int quality)
 {
     if (this._disposed)
     {
         throw new ObjectDisposedException("CompactImage");
     }
     if (this._handle != IntPtr.Zero)
     {
         Native.RIL_Save(this._handle, path, quality);
     }
 }