I am generating thumbnails from a folder using
- Code: Select all
CreateGdPictureImageFromFile(fileName)
Sometimes I am getting 0 as ImageID. The Image is not corrupt and can be viewed in any other previewer.
sample Code:
- Code: Select all
foreach (string file in files)
{
m_CurrentImage = Imaging1.CreateGdPictureImageFromFile(file);
m_CurrentThumbnail = Imaging1.CreateThumbnail(m_CurrentImage, 90, 90);
}
I am getting 0 as m_CurrentImage.
What can be the reason for this ?
Any help will be appreciated.
Thanks,
Tanmoy Mitra
