ci viene chiesto di renderlo più piccolo del 20%! Given a large rectangular object w and high h we are asked to make it smaller by 20%! First of all, we decrease of 20% its width:
1 | object.width object.width = - ((object.width * 20) / 100) |
from which
1 | object.width object.width = - (object.width * 0.2) |
from which
1 | object.width = object.width * (1-0.2) |
For the height is exactly the same.
When there's a third object, ie there has been given the percentage to be removed from our object, but by a third party, we have:
1 2 3 | rate = object.width / object.height object.width = terzo.width * (1-0.2) object.height = object.width / installments |






Latest Comments
Rosanna : Can anyone tell me how do I delete the Snap Shots window that opens automatically when I ...
blessed Maresca : I can not download any skypemote me spiegaaa
Matthew : Hello everyone, unfortunately Google does not allow the use of the API for Flash, but it will ...
Giovambattista Fazioli : @ GM: If you upload images to a different server (that WordPress can not ...
GM : Hi, sorry to resurrect an old post but I hope you can give me a hand. How do I, with this method, ...