Hi Dany
Did you enable the bCheckUnknown parameter?
This works fine for me:
with TIEMultiBitmap.Create do
try
if not Read( 'D:\TEST.JPG', nil, True ) then
ShowMessage('Error')
else
ShowMessage('ok');
finally
free
end;
This also works fine (note: extension needs to be "PNG"):
RenameFile( 'D:\TEST.JPG', 'D:\TEST.PNG' );
with TIEMultiBitmap.Create do
try
if not Read( 'D:\TEST.PNG' ) then
ShowMessage('Error')
else
ShowMessage('ok');
finally
free
end;
Nigel
Xequte Software
www.imageen.com