We're currently evaluating your framework for image processing and enhancement, but we encountered a problem this morning that may block us :
I scanned the survey in attachment, in color, resulting in this multipage tiff in 24bits. A call to TiffCreateMultiPageFromFile() gives me an imageId, status is OK. Good.
Then I try to get a BitmapSource out of it, using this code :
Code: Select all
var bitmapSource = GdPictures.GPI.GetBitmapSourceFromGdPictureImage(ImageId);
if (bitmapSource == null)
{
_logger.Error($"An error occured {GdPictures.GPI.GetStat().ToString()}");
}
I didn't release the image in the process, so it shouldn't be the issue.
All this code works fine with images scanned in Black&White. Paint is able to open the file without problem....
Do you have any idea of what is going on ?
Thank you