diff --git a/FuzzySceneOptimization/README.en.md b/FuzzySceneOptimization/README.en.md new file mode 100644 index 0000000000000000000000000000000000000000..58383ed2372780898198daf5257dcc381e1352b3 --- /dev/null +++ b/FuzzySceneOptimization/README.en.md @@ -0,0 +1,59 @@ +# Optimizing Image Blur Effect + +### Overview + +This sample shows motion blur and static blur in the transition with blurred image scenario. + +### Preview + +| Motion blur | Static blur | +|----------------------------------------|----------------------------------------| +| | | + + +### How to Use + +1. Tap the **motion blur** button on the parent page to redirect to the child page **MotionBlur**. + +2. Tap the **motion blur** button on the child page **MotionBlur** to launch the full-screen modal page with a dynamically blurred image. + +3. Tap the **static blur** button on the parent page to redirect to the child page **StaticBlur**. + +4. Tap the **static blur** button on the child page **StaticBlur** to display the full-screen modal page with a statically blurred image. + +### Project Directory +``` +├──entry/src/main/ets +│ ├──entryability +│ │ └──EntryAbility.ets // Entry ability lifecycle callbacks +│ ├──entrybackupability +│ │ └──EntryBackupAbility.ets // Entry ability that provides backup and restore capabilities for the application +│ └──pages +│ ├──MainPage.ets // View layer - parent page +│ ├──MotionBlur.ets // View layer - motion blur page +│ └──StaticBlur.ets // View layer - static blur page +└──entry/src/main/resources // Static resources +``` + +### How to Implement + +1. To implement motion blur, set the **blur** value of the **Image** component to add the blur effect to the image. +2. To implement static blur, call **createPixelMap** to create the **PixelMap** of an image, call **createEffect** to create a **Filter** instance, and use **blur** in the **Filter** class to add the blur effect to the image. + +### Required Permissions + +N/A + +### Dependencies + +N/A + +### Constraints + +1. This sample is supported only on Huawei phones running the standard system. + +2. The HarmonyOS version must be HarmonyOS NEXT Release or later. + +3. The DevEco Studio version must be DevEco Studio NEXT Release or later. + +4. The HarmonyOS SDK version must be HarmonyOS NEXT Release SDK or later.