From acf3a944cc161eca5dd532f38315ce0c6da61e52 Mon Sep 17 00:00:00 2001 From: lanyill Date: Mon, 16 Jan 2023 16:17:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9globalAlpha=E5=B1=9E=E6=80=A7?= =?UTF-8?q?demo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lanyill --- .../figures/zh-cn_image_0000001194192434.png | Bin 873 -> 2547 bytes .../figures/zh-cn_image_0000001238832405.png | Bin 873 -> 2547 bytes .../arkui-ts/ts-canvasrenderingcontext2d.md | 10 +++++----- .../ts-offscreencanvasrenderingcontext2d.md | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) mode change 100644 => 100755 zh-cn/application-dev/reference/arkui-ts/figures/zh-cn_image_0000001238832405.png diff --git a/zh-cn/application-dev/reference/arkui-ts/figures/zh-cn_image_0000001194192434.png b/zh-cn/application-dev/reference/arkui-ts/figures/zh-cn_image_0000001194192434.png index f5cd637e5bf9db13e3334ca00413e3a91412c813..d2d75c22fdc20c39349b1397b52fb156a454d894 100644 GIT binary patch literal 2547 zcmcJP4Ny~87RPT$LJ|l?48k&IwEl9-}S~cqKTEswMg;YRY zgTR16Slp757;V;~SfTjQLiwz=zzS*r%M|&rYNRN{AcQ1uA7E?Ol^u3x_GSK=JO6uf z?)jZ_^N>#DKA6J|-4qHi7!25fegN_#*Z_#u)&y%jkw74jNJJYlWJk8OCA-dbw1?c? zs0-ZPD3pauR?-$O@?1=z!2Wd4Ro)B+gGvhw4)9sK(wE^gnFK>3k;t}W7dtx_9}kL$ z&wu?O-vS3BxC?&5Vio}_2MpE$gERmt02n-4?PS3(AB+_ihqopWNjA1g0;_9|^ z84ac{XZWr54+sp}@D4kavvCtQa`Tq=qN2CPeDLAUUAx75_9h&ZBqn{FoRX1wmPXV^TS7vb;Be2=Z4W2W8=n2E)2jXq{Ecjf`Hih<9GZfVgon@;^Z$*wia4a zSmx*AS7A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u8T^hAz`=7kn1bh5_+-KNc2rl0*e&8PYKoF8aD&8PW8@9}V{nM@+a4r3>oF=v-- zllnEyr};F0s0r8K&;PXm*EcEp;2`KvZj&apo_`nR*)Gh4n+(pfPgPOgHPeWFtxrWZ+B0O9-7yjvs8dO57@HSQ`e^d-YR}}SK*osUrmn6ef)asKDI0gzv>^;cR;@b+ue6?am{4&)xmG< zjsm{HnXhUkAgKW+yF@Hd<3C)=O{2tVP? z4dG`Xc4&UQP8dn%6F%W*{{DdGC!E*fE@apTj{?SyX5is@gzyQUna|AEJPH^)nt?O(#|WJ8 z2|u5cEX}9+G@q-TF^&SlC;WUy5Y4CgG@pArnnwX+M>BBVWQ`Fx;S+v7Cs~?L^JzX; zJ7XLLgirYSj3Am%^JzZ!b~KLy#*Sv-;hU`g$`a*Jn65is00000NkvXXu0mjf(ipy3 diff --git a/zh-cn/application-dev/reference/arkui-ts/figures/zh-cn_image_0000001238832405.png b/zh-cn/application-dev/reference/arkui-ts/figures/zh-cn_image_0000001238832405.png old mode 100644 new mode 100755 index f5cd637e5bf9db13e3334ca00413e3a91412c813..d2d75c22fdc20c39349b1397b52fb156a454d894 GIT binary patch literal 2547 zcmcJP4Ny~87RPT$LJ|l?48k&IwEl9-}S~cqKTEswMg;YRY zgTR16Slp757;V;~SfTjQLiwz=zzS*r%M|&rYNRN{AcQ1uA7E?Ol^u3x_GSK=JO6uf z?)jZ_^N>#DKA6J|-4qHi7!25fegN_#*Z_#u)&y%jkw74jNJJYlWJk8OCA-dbw1?c? zs0-ZPD3pauR?-$O@?1=z!2Wd4Ro)B+gGvhw4)9sK(wE^gnFK>3k;t}W7dtx_9}kL$ z&wu?O-vS3BxC?&5Vio}_2MpE$gERmt02n-4?PS3(AB+_ihqopWNjA1g0;_9|^ z84ac{XZWr54+sp}@D4kavvCtQa`Tq=qN2CPeDLAUUAx75_9h&ZBqn{FoRX1wmPXV^TS7vb;Be2=Z4W2W8=n2E)2jXq{Ecjf`Hih<9GZfVgon@;^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I)Ge) zi_`K@0xQZu8T^hAz`=7kn1bh5_+-KNc2rl0*e&8PYKoF8aD&8PW8@9}V{nM@+a4r3>oF=v-- zllnEyr};F0s0r8K&;PXm*EcEp;2`KvZj&apo_`nR*)Gh4n+(pfPgPOgHPeWFtxrWZ+B0O9-7yjvs8dO57@HSQ`e^d-YR}}SK*osUrmn6ef)asKDI0gzv>^;cR;@b+ue6?am{4&)xmG< zjsm{HnXhUkAgKW+yF@Hd<3C)=O{2tVP? z4dG`Xc4&UQP8dn%6F%W*{{DdGC!E*fE@apTj{?SyX5is@gzyQUna|AEJPH^)nt?O(#|WJ8 z2|u5cEX}9+G@q-TF^&SlC;WUy5Y4CgG@pArnnwX+M>BBVWQ`Fx;S+v7Cs~?L^JzX; zJ7XLLgirYSj3Am%^JzZ!b~KLy#*Sv-;hU`g$`a*Jn65is00000NkvXXu0mjf(ipy3 diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-canvasrenderingcontext2d.md b/zh-cn/application-dev/reference/arkui-ts/ts-canvasrenderingcontext2d.md index ee45032d38..ab087aae4c 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-canvasrenderingcontext2d.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-canvasrenderingcontext2d.md @@ -388,11 +388,11 @@ struct GlobalAlpha { .height('100%') .backgroundColor('#ffff00') .onReady(() =>{ - this.context.fillStyle = 'rgb(255,0,0)' - this.context.fillRect(0, 0, 50, 50) - this.context.globalAlpha = 0.4 - this.context.fillStyle = 'rgb(0,0,255)' - this.context.fillRect(50, 50, 50, 50) + this.context.fillStyle = 'rgb(0,0,255)' + this.context.fillRect(0, 0, 50, 50) + this.context.globalAlpha = 0.4 + this.context.fillStyle = 'rgb(0,0,255)' + this.context.fillRect(50, 50, 50, 50) }) } .width('100%') diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-offscreencanvasrenderingcontext2d.md b/zh-cn/application-dev/reference/arkui-ts/ts-offscreencanvasrenderingcontext2d.md index b8e388139e..732e0cd1f5 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-offscreencanvasrenderingcontext2d.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-offscreencanvasrenderingcontext2d.md @@ -407,7 +407,7 @@ struct GlobalAlpha { .height('100%') .backgroundColor('#ffff00') .onReady(() =>{ - this.offContext.fillStyle = 'rgb(255,0,0)' + this.offContext.fillStyle = 'rgb(0,0,255)' this.offContext.fillRect(0, 0, 50, 50) this.offContext.globalAlpha = 0.4 this.offContext.fillStyle = 'rgb(0,0,255)' -- GitLab