Autor Beitrag
lemmond1976
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 66



BeitragVerfasst: Di 11.03.03 12:37 
Hallo, weiß jemand, mit welcher Funktion man das Format von jpg-files bestimmen kann ?
Für eine Antwort wäre ich sehr dankbar.

Gruss
Gunnar
Andreas Pfau
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 997



BeitragVerfasst: Di 11.03.03 16:35 
Wenn ich das richtig verstanden habe, willst du wissen, ob ein TJpegImage im Hoch- oder Querformat vorliegt? Ganz einfach, wenn das Image breiter als hoch ist, dann ist's quer.
ausblenden Quelltext
1:
2:
3:
4:
function Querformat(Image: TJpegImage): Boolean;
begin
  Result := Image.Width > Image.Height;
end;

_________________
Life is a bad adventure, but the graphic is really good!