Lunarovich Posted June 1, 2015 Share Posted June 1, 2015 Hello, when I use Context:DrawRect() with scaled (1, 3) context with a style = 1 (ie. not filled) I get this as a result: On the contrary, when I use style = 0 - ie. filled rectangle, everything seems to be OK: Quote Link to comment Share on other sites More sharing options...
Einlander Posted June 1, 2015 Share Posted June 1, 2015 Context:set scale is broken for a long time. http://www.leadwerks.com/werkspace/topic/11768-contextsetscale-breaks-some-drawing-commands/page__hl__context%3Asetscale 1 Quote Link to comment Share on other sites More sharing options...
Lunarovich Posted June 2, 2015 Author Share Posted June 2, 2015 I've just read your example. It's such a shame that scaling does not work proprely in all cases. I've tested it with DrawImage/Text/Rectangle and it works as expected. Also, I've bumped into problems with SetTranslation cause I wanted to implement variable pivot for the rotation (put the rotation pivot in the center of the image, for example). Although I've done it already in HTML5 canvas, SetScale here does not work in the similar way... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.