difference between width and sourceWidth?

pani3610

New Member
I am using GetSceneItemProperties() to get data regarding the source position and size. I wanted to know the difference between 'width' and 'sourceWidth' properties.

these value 'seem' to be exactly same.
 

bob312123

New Member
width and height refer to the actual width and height whereas sourceWidth and sourceHeight refer to the width and height before any transformations such as when scaleX or scaleY are not 1.

Note: I'm aware that this response is quite after the original, but this is more for others who happen to arrive here.
 
Top