Hi,

I need to resize a picture and have to devide the width by the height and multiply the result with a fixed height.
To devide I use / and mod this is working but multiply with 1.688 is dificult for me.

her is the code I use this far it is a pice from a fixform script:

 Code:
 $Height = $Bitmap.Height
 $Width = $Bitmap.Width
 
 $dev = ($Width / $Height)
 $mod = ($Width mod $Height)
 
 $verh = "$dev" +"." + "$mod"
  
 ? $Width
 ? $height
 ? $verh

 $nwheight = 600 * $verh

 ? $nwheight


peter