/// <summary> /// Creates new instance of <see cref="TJDecompressor"/> /// </summary> /// <exception cref="TJException"> /// Throws if internal compressor instance can not be created /// </exception> public TJDecompressor() { _decompressorHandle = TurboJpegImport.tjInitDecompress(); if (_decompressorHandle == IntPtr.Zero) { TJUtils.GetErrorAndThrow(); } }