/// <summary> /// Initializes a new instance of the <see cref="TJDecompressor"/> class. /// </summary> /// <exception cref="TJException"> /// Throws if internal compressor instance can not be created. /// </exception> public TJDecompressor() { this.decompressorHandle = TurboJpegImport.TjInitDecompress(); if (this.decompressorHandle == IntPtr.Zero) { TJUtils.GetErrorAndThrow(); } }