Hi,
Would you please tell me whether there is a limit to the images processed by Windows Imaging Component (WIC) and the maximum resolution of images that can be processed.
Image data to be processed:
Picture specifications
Byte size: 133M
Format: BMP
Resolution: 600DPI
Height: 56173
Width: 19866
Bit depth: 1
Code:
CoInitialize(NULL);
IWICImagingFactory* pFactory = NULL;
IWICBitmapClipper* pIClipper = NULL;
IWICBitmapDecoder *pIDecoder = NULL;
IWICBitmapFrameDecode *pIDecoderFrame = NULL;
IWICBitmapFrameEncode *piFrameEncode = NULL;
IWICStream *piFileStream = NULL;
IWICBitmapEncoder *piEncoder = NULL;
WICPixelFormatGUID pixelFormat = { 0 };
HRESULT hr = CoCreateInstance(
CLSID_WICImagingFactory,
NULL,
CLSCTX_INPROC_SERVER,
IID_PPV_ARGS(&pFactory)
);
if (FAILED(hr))
{
goto CLEAN;
}
//Error is caused at below line
hr = pFactory->CreateDecoderFromFilename(
originalPath,
NULL,
GENERIC_READ,
WICDecodeMetadataCacheOnDemand,
&pIDecoder
);
Error Msg shown is:
Message :WINCODEC_ERR_UNKNOWNIMAGEFORMAT(0x88982f07)
Thanks in advance!!!
-zhulj