Reputation: 21
pImageEnView.IO.LoadFromFileJPEG(pFileName)
doesnt not display some of the .jpg images but when i use pImageEnView.IO.LoadFromFileAuto(pFileName)
the image are visible this also happened when i was using pImageEnView.IO.LoadFromFileBMP(pFileName)
for .bmp file
Upvotes: 1
Views: 451
Reputation: 612964
The explanation that fits the symptoms is that the file format does not match the file extension. Perhaps you have a .jpg file that is really a Windows bitmap file. Or some other format.
Debug and diagnose this by looking at the files in a hex editor. All common image file formats begin with a header that identifies the format.
Upvotes: 2