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