在容器内画背景、画框
<s:Group width="100%" height="100%">
<s:Rect left="0" right="0" top="0" bottom="0">
<!--填充颜色-->
<s:fill>
<s:SolidColor color="0xFF0000" alpha="1" />
</s:fill>
<!--画框-->
<s:stroke>
<s:SolidColorStroke color="0xB1BEC2" weight="10"/>
</s:stroke>
</s:Rect>
</s:Group>
绘制圆角矩形背景
<s:Rect left="0" right="0" top="0" bottom="0" radiusX="10">
<!--填充颜色-->
<s:fill >
<s:SolidColor color="0x1A4876" alpha="1" />
</s:fill>
</s:Rect>
关键点:radiusX,radiusY
这篇博客探讨了如何在Flex的MXML组件中进行图形绘制,包括在容器内画背景和圆角矩形,重点讲解了radiusX和radiusY属性在绘制圆角矩形背景中的应用。
3369

被折叠的 条评论
为什么被折叠?



