I am trying to set the maximum compression on a WEBP save using the ImageMagick plugin. Having trouble getting this Delphi code converted to C++Builder. Specifically, I can't seem to find a Create() method for TIEDictionary. I tried creating it with "new" as well but that didn't work either.
ImageEnView1.IO.LoadFromFile( 'D:\Image.png' ); imDict := TIEDictionary.Create(); // HAVING TROUBLE CONVERTING THIS LINE TO C++ imDict.Insert( 'webp:lossless', true ); imDict.Insert( 'webp:method', 0 ); imDict.Insert( 'webp:auto-filter', true ); ImageEnView1.IO.Params.Dict.Insert( 'ImageMagick', imDict ); ImageEnView1.IO.SaveToFile( 'D:\Image_out.webp' );