Hello, i have this old code that read the height e width of an image in pixel.
I have recently upgraded to the latest version of ImageEn an now the function returns the wrong image size: width and height are swapped. I have attached an image. Thanks.
var
img:Timageenview;
ff: TIOFileType;
begin
if not(fileexists(percorso_immagine)) then exit;
img:=Timageenview.create(nil);
try
ff := FindFileFormat( percorso_immagine, false );
img.IO.ParamsFromFile( percorso_immagine, ff );
puntix:=img.io.params.width;
puntiy:=img.io.params.height;
finally
img.free;
end;
end;
attach/mastinf/202534112337_AU-ART1.JPG
Roberto Nicchi
Master Informatica
Italy