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
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Keep Aspect Ratio

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
wallacej Posted - 02/01/2005 : 04:33:45 AM
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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000