ImageEn, unit iemiscplugins

TIEMiscPluginsImageMagick

TIEMiscPluginsImageMagick


Declaration


TIEMiscPluginsImageMagick = class;


Description


TIEMiscPluginsImageMagick is a wrapper around ImageMagick library, allowing ImageEn to load many formats like PDF, PS, PCD and many others.
To setup ImageMagick wrapper just call, one time, the RegisterPlugin class method.

You can download ImageMagick from:
http://www.imagemagick.org/script/download.php#windows

In order to load PDF, PS, PCL and you must install the Ghostscript library:
http://www.ghostscript.com/download/


Methods and Properties


  IsAvailable
  RegisterPlugin



Demo


  Demos\InputOutput\ImageMagick\ImageMagick.dpr



Example


// rasterizes page number 5 of mybook.pdf at 200dpi
TIEMiscPluginsImageMagick.RegisterPlugin(); // call only one time!
ImageEnView1.IO.Params.ImageIndex := 5;
ImageEnView1.IO.Params.Dict.Insert('PDF:Density', 200);
ImageEnView1.IO.LoadFromFile('mybook.pdf');