开发者

Line weight in Canvas object changes during scaleX animation?

开发者 https://www.devze.com 2023-03-20 07:45 出处:网络
I am currently working with a Canvas object on which I am drawing curves using 开发者_JAVA百科the curveTo() function of the canvas\' corresponding Graphics object.

I am currently working with a Canvas object on which I am drawing curves using 开发者_JAVA百科the curveTo() function of the canvas' corresponding Graphics object.

The following animation is being performed on the Canvas object's scaleX attribute.

<mx:AnimateProperty property="scaleX" fromValue="1" toValue=".5" duration="1000" />

At present, this transformation is also scaling the line weight down by some arbitrary value. Is there any way to perform a scaleX transformation on the Canvas without it modifying the line weight of the lines drawn in the canvas? Any advice is welcome.


My guess is that your line weight is set to the .1 or pen stripe. Try setting the line width to 1.

0

精彩评论

暂无评论...
验证码 换一张
取 消