HarmonyOS/OpenHarmony应用开发-ArkTS画布组件(九)
fillRectstrokeRectfillRectfillRect(x:number,y:number,w:number,h:number):void填充一个矩形。参数:示例:xxx.etsEntryComponentstructFillRect{privatesettings:RenderingContextSettingsnewRenderingContextSettings(true)privatecontext:CanvasRenderingContext2DnewCanvasRenderingContext2D(this.settings)build(){Flex({direction:FlexDirection.Column,alignItems:ItemAlign.Center,justifyContent:FlexAlign.Center}...