public void CreateDestroyCompressor() { var handle = new TurboJpegSafeHandle(NativeMethods.initCompressor()); Assert.IsFalse(handle.IsInvalid); handle.Dispose(); Assert.IsTrue(handle.IsClosed); }
public void CreateCompressor() { this.handle = new TurboJpegSafeHandle(NativeMethods.initCompressor()); }
public void CreateDecompressor() { this.handle = new TurboJpegSafeHandle(NativeMethods.initDecompressor()); }