Skip to main content
Inspiring
April 25, 2024
Answered

•  .resize() from the bottomLeft corner of an object

  • April 25, 2024
  • 1 reply
  • 359 views

Hello -

 

I'm struggling with an object I want to “resize” from te BOTTOM LEFT.
I manage to resized it, but not from the Bottom Left.
I checked the documentation, but there's nothing I can do.
What's the right code to force it to resize from the Bottom Left?

 

- - - - - - 

scaleX Number (double) Horizontal scaling factor
scaleY Number (double) Vertical scaling factor

scaleAbout Transformation, optional The point to use as anchor, to transform about

- - - - - - 

 

 

myObject.resize(120, 120, false, false, false, false, 100, Transformation.BOTTOMLEFT);

myObject.resize(120, 120, false, false, false, false, 0, myObject.Transformation.BOTTOMLEFT);

 

 

NB. I don't want any "scale line widths" so I try "100" (but not sure if it's correct).

 

Thanks for any helps.

 

 

  

- Dimitri

 

This topic has been closed for replies.
Correct answer pixxxelschubser

Hi @dimitri_cas 

Try

myObject.resize(120, 120, true, false, false, false, 100, Transformation.BOTTOMLEFT);

 

1 reply

pixxxelschubser
Community Expert
pixxxelschubserCommunity ExpertCorrect answer
Community Expert
April 25, 2024

Hi @dimitri_cas 

Try

myObject.resize(120, 120, true, false, false, false, 100, Transformation.BOTTOMLEFT);

 

Inspiring
April 25, 2024

 

 Many thx  🙏