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

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