foregroundBlurStyle为当前组件提供内容模糊能力。@Entry @Component struct ForegroundBlurStyleDemo { build() { Column() { Text('Thin Material').fontSize(30).fontColor(0xCCCCCC) Image($r('app.media.bg')) .width(300) .height(350) .foregroundBlurStyle(BlurStyle.Thin, { colorMode: ThemeColorMode.LIGHT, adaptiveColor: AdaptiveColor.DEFAULT, scale: 1.0 }) } .height('100%') .width('100%') } }
foregroundBlurStyle为当前组件提供内容模糊能力。