From: Lawrence S. <LS...@at...> - 2011-10-23 22:15:07
|
Howard, Sorry about not being more specific in my email. I have had fair amount of experience with Delphi and I coded Delphi to change the picture to either portrait or landscape. I realize these are terms for printing but I think the aspect of the picture determines that. So aspect = image.width/image.height. If this value < 1.0 then height > then width whereas if the value > 1.0 then width is greater than the height where if a = 1 then they are equal. Aspect is a real value whereas picture height and picture width are integer values. So Lazarus does not recognize this. My question is how does one code that in Lazarus. It works fine in Delphi. Thanks again Larry |