如何在只有两个圆角的画架中绘制一个矩形。我这样做是为了在底部找到圆角:
layout.graphics.beginStroke("black").drawRoundRect(100,100,100,100,0,0,5,5);
这不是绘制任何圆角。只有这似乎有效:
layout.graphics.beginStroke("black").drawRoundRect(100,100,100,100,5);
答案 0 :(得分:2)
查看drawRoundRectComplex
方法,而不是drawRoundRect
:http://createjs.com/docs/easeljs/classes/Graphics.html#method_drawRoundRectComplex
drawRoundRectComplex(x, y, w, h, radiusTL, radiusTR, radiusBR, radiusBL);
希望有所帮助。