TImageEnIO.LoadFromFileJP2
Declaration
function LoadFromFileJP2(const FileName: WideString): Boolean;
Description
Loads an image from a Jpeg2000 (JP2) file.
FileName is the file name including extension.
Result will be false if the file is not JPEG2000 format (and
Aborting will be true). Loading errors due to a file not being available will raise an exception.
Note:
◼An optimized JPEG2000 library is used if the
IELib or IEVision DLL is available
◼You can abort loading by setting
Aborting to true
// Load a JPEG2000 image as fast as possible, ensuring width is >= 150 and height >= 100 (while maintaining the aspect ratio)
ImageEnView1.IO.Params.LoadToWidth := 150;
ImageEnView1.IO.Params.LoadToHeight := 100;
ImageEnView1.IO.Params.J2000_Reduce := -1; // auto-calc
ImageEnView1.LoadFromFileJP2('image.jp2');