[NUI] Add background blur effect option: blur once
authorjmm <j0064423.lee@samsung.com>
Tue, 25 Mar 2025 09:31:31 +0000 (18:31 +0900)
committerJaehyun Cho <jaehyun0cho@gmail.com>
Tue, 1 Apr 2025 11:52:37 +0000 (20:52 +0900)
src/Tizen.NUI/src/internal/Interop/Interop.BackgroundBlurEffect.cs
src/Tizen.NUI/src/public/RenderEffects/RenderEffect.cs

index 1715ae0f4afe2dfb61fef9b83486d3fc113f5400..bf914b76e7baf01b70e5bd5f2045ad9d7d95372b 100644 (file)
@@ -5,7 +5,7 @@ namespace Tizen.NUI
         internal static partial class BackgroundBlurEffect
         {
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_BackgroundBlurEffect_New__SWIG_1")]
-            public static extern global::System.IntPtr New(uint pixelRadius);
+            public static extern global::System.IntPtr New(uint pixelRadius, bool blurOnce);
         }
     }
 }
index f45a9b2d912505fb063b1f22f93f3c64d8582a8a..1331986779c5859ac8bb5fb41b0720015b2fd6e6 100644 (file)
@@ -44,11 +44,12 @@ namespace Tizen.NUI
         /// Created RenderEffect is immutable.
         /// </remarks>
         /// <param name="blurRadius">The blur radius value. The unit is pixel for standard cases.</param>
+        /// <param name="blurOnce">Whether to blur once or always.</param>
         /// <returns>Background blur effect with given blur radius.</returns>
         [EditorBrowsable(EditorBrowsableState.Never)]
-        public static RenderEffect CreateBackgroundBlurEffect(float blurRadius)
+        public static RenderEffect CreateBackgroundBlurEffect(float blurRadius, bool blurOnce=false)
         {
-            return new RenderEffect(Interop.BackgroundBlurEffect.New((uint)Math.Round(blurRadius, 0)));
+            return new RenderEffect(Interop.BackgroundBlurEffect.New((uint)Math.Round(blurRadius, 0), blurOnce));
         }
     }
 }