Please note, this is a STATIC archive of website www.javatpoint.com from 19 Jul 2022, cach3.com does not collect or store any user information, there is no "phishing" involved.
You can perform the scaling around a center point. To stay the width of the outline same while the object becomes larger, you can divide the stroke-width by the scaling factor.