Exemple #1
0
 /// <summary>
 /// Creates new instance of <see cref="TJTransformer"/>
 /// </summary>
 /// <exception cref="TJException">
 /// Throws if internal compressor instance can not be created
 /// </exception>
 public TJTransformer()
 {
     _transformHandle = TurboJpegImport.tjInitTransform();
     if (_transformHandle == IntPtr.Zero)
     {
         TJUtils.GetErrorAndThrow();
     }
 }