I always get this error when I loading image use this function,here is the code:
csRef<iImage> img_test1=loader->LoadImage(fileData,CS_IMGFMT_ANY);
I have also tried to use
img_test1=iio->Load(fileData,CS_IMGFMT_ANY);
which the iio is the iImageIO, but when I use this way to load Image as the same function in the g2dTest demo ,return value of img_test1.IsValid() are always false,iio.IsValid() and fileData.isValid() are already true,so what's going on? thank you