The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Keep Aspect Ratio
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

wallacej

UK
Posts

Posted - 02/01/2005 :  04:33:45 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version 7.5
Operating System: Win2000

I am using the following code to resize an image:

if(BMP1.Width != 0/0) {
BMP1.Width = 1850;
BMP1.Height = 1844;
BMP1.Left = 4231;
BMP1.Top = 2732;
}


The values are calculated to keep aspect ratio. However it is important that aspect ratio is kept if the original image is of slightly different size to the one used in testing. Is there a command that will keep the aspect ratio if I only resize the height in the code?

Also, I am having trouble with the above code due to different systems having different printer drivers. I would like to re-size and position the image in millimetres and not pixels. Is it possible to do this?

Edited by - wallacej on 02/01/2005 04:34:43 AM
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000