+ QFileInfo aFI(theFilePath);
+ QImage anImage;
+ HYDROData_Image::ECW_FileInfo* theECWInfo;
+ if (aFI.suffix().toLower() == "ecw")
+ {
+ theECWInfo = new HYDROData_Image::ECW_FileInfo;
+ HYDROData_Image::OpenECW(theFilePath.toLatin1().data(), anImage, theECWInfo);
+ }
+ else
+ anImage = QImage(theFilePath);