Class GaussianBlurView

    Definition

    Namespace:
    Tizen.NUI
    Assembly:
    Tizen.NUI.dll

    GaussianBlurView is a class for applying a render process that blurs an image.

    public class GaussianBlurView : View, IDynamicResourceHandler, INameScope, System.IDisposable, IResourcesProvider
    Inheritance
    object
    BindableObject
    Element
    BaseHandle
    Animatable
    Container
    View
    GaussianBlurView
    Implements
    IDynamicResourceHandler
    INameScope
    System.IDisposable
    IResourcesProvider

    Constructors

    View Source

    GaussianBlurView()

    Constructor

    Declaration
    public GaussianBlurView()
    View Source

    GaussianBlurView(uint, float, PixelFormat, float, float, bool)

    Constructor with parameters.

    Declaration
    public GaussianBlurView(uint numSamples, float blurBellCurveWidth, PixelFormat renderTargetPixelFormat, float downsampleWidthScale, float downsampleHeightScale, bool blurUserImage)
    Parameters
    Type Name Description
    uint numSamples

    The size of the Gaussian blur kernel (number of samples in horizontal / vertical blur directions)

    float blurBellCurveWidth

    The constant controlling the Gaussian function, must be > 0.0. Controls the width of the bell curve, i.e. the look of the blur and also indirectly the amount of blurriness Smaller numbers for a tighter curve. Useful values in the range [0.5..3.0] - near the bottom of that range the curve is weighted heavily towards the centre pixel of the kernel (so there won't be much blur), near the top of that range the pixels have nearly equal weighting (closely approximating a box filter therefore). Values close to zero result in the bell curve lying almost entirely within a single pixel, in other words there will be basically no blur as neighbouring pixels have close to zero weights.

    PixelFormat renderTargetPixelFormat

    The pixel format of the render targets we are using to perform the blur.

    float downsampleWidthScale

    width scale factor applied during the blur process, scaling the size of the source image to the size of the final blurred image output. Useful for downsampling - trades visual quality for processing speed. A value of 1.0f results in no scaling applied.

    float downsampleHeightScale

    The height scale factor applied during the blur process, scaling the size of the source image to the size of the final blurred image output. Useful for downsampling - trades visual quality for processing speed. A value of 1.0f results in no scaling applied.

    bool blurUserImage

    If this is set to true, the GaussianBlurView object will operate in a special mode that allows the user to blur an image of their choice. See SetUserImageAndOutputRenderTarget().

    View Source

    GaussianBlurView(GaussianBlurView)

    Copy constructor

    Declaration
    public GaussianBlurView(GaussianBlurView handle)
    Parameters
    Type Name Description
    GaussianBlurView handle

    Fields

    View Source

    BlurStrengthProperty

    Declaration
    public static readonly BindableProperty BlurStrengthProperty
    Field Value
    Type Description
    BindableProperty

    Properties

    View Source

    BlurStrength

    The BlurStrength property. A value of 0.0 is zero blur and 1.0 is full blur. Default is 1.0. if you set the blur to 0.0, the result will be no blur BUT the internal rendering will still be happening. If you wish to turn the blur off, you should remove the GaussianBlurView object from the window also.

    Declaration
    public float BlurStrength { get; set; }
    Property Value
    Type Description
    float

    Methods

    View Source

    Activate()

    Start rendering the GaussianBlurView. Must be called after you Add() it to the window.

    Declaration
    public void Activate()
    View Source

    ActivateOnce()

    Render the GaussianBlurView once. Must be called after you Add() it to the window. Listen to the Finished signal to determine when the rendering has completed.

    Declaration
    public void ActivateOnce()
    View Source

    Deactivate()

    Stop rendering the GaussianBlurView. Must be called after you Remove() it from the window.

    Declaration
    public void Deactivate()
    View Source

    Dispose(DisposeTypes)

    Dispose GaussianBlurView and all children on it.

    Declaration
    protected override void Dispose(DisposeTypes type)
    Parameters
    Type Name Description
    DisposeTypes type

    Dispose type.

    Overrides
    View.Dispose(DisposeTypes)
    View Source

    ReleaseSwigCPtr(HandleRef)

    Declaration
    protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
    Parameters
    Type Name Description
    System.Runtime.InteropServices.HandleRef swigCPtr
    Overrides
    View.ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef)

    Events

    View Source

    Finished

    If ActivateOnce has been called, then connect to this signal to be notified when the target actor has been rendered.

    Declaration
    public event DaliEventHandler<object, EventArgs> Finished
    Event Type
    Type Description
    DaliEventHandler<object, EventArgs>

    Implements

    IDynamicResourceHandler
    INameScope
    System.IDisposable
    IResourcesProvider

    Extension Methods

    BindingExtensions.BindingSession<TViewModel>(View)
    BindingExtensions.SetBinding<T>(View, BindingSession<T>, Action<T>, string)
    BindingExtensions.SetBinding<TViewModel>(View, BindingSession<TViewModel>, string, string)
    BindingExtensions.SetTwoWayBinding<TViewModel, TProperty>(View, BindingSession<TViewModel>, TwoWayBindingProperty<View, TProperty>, string)
    ViewExtensions.BackgroundColor(View)
    ViewExtensions.BorderlineColor(View)
    ViewExtensions.BoxShadow(View)
    ViewExtensions.Color(View)
    ViewExtensions.CornerRadius(View)
    BindableObjectExtensions.SetBinding(BindableObject, BindableProperty, string, BindingMode, IValueConverter, string)
    NameScopeExtensions.FindByName<T>(Element, string)
    BindingExtensions.BindingSession<T, TViewModel>(T, BindingSession<TViewModel>)
    BindingExtensions.SetBinding<T, TView>(TView, BindingSession<T>, Action<T, TView>, string)
    BindingExtensions.SetBinding<TView, TViewModel, TProperty>(TView, BindingSession<TViewModel>, BindingProperty<TView, TProperty>, string)
    BindingExtensions.SetTwoWayBinding<TView, TViewModel, TProperty>(TView, BindingSession<TViewModel>, TwoWayBindingProperty<TView, TProperty>, string)
    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    ViewExtensions.BackgroundColor<T>(T, float, float, float, float)
    ViewExtensions.BackgroundColor<T>(T, uint, float)
    ViewExtensions.BackgroundColor<T>(T, UIColor)
    ViewExtensions.BackgroundImage<T>(T, string)
    ViewExtensions.Borderline<T>(T, float, UIColor, float)
    ViewExtensions.BorderlineColor<T>(T, float, float, float, float)
    ViewExtensions.BorderlineColor<T>(T, uint, float)
    ViewExtensions.BorderlineColor<T>(T, UIColor)
    ViewExtensions.BorderlineOffset<T>(T, float)
    ViewExtensions.BorderlineWidth<T>(T, float)
    ViewExtensions.BoxShadow<T>(T, float, float, float)
    ViewExtensions.BoxShadow<T>(T, float, UIColor, float, float)
    ViewExtensions.BoxShadow<T>(T, UIShadow)
    ViewExtensions.ClippingMode<T>(T, ClippingModeType)
    ViewExtensions.Color<T>(T, float, float, float, float)
    ViewExtensions.Color<T>(T, uint, float)
    ViewExtensions.Color<T>(T, UIColor)
    ViewExtensions.CornerRadius<T>(T, float, bool)
    ViewExtensions.CornerRadius<T>(T, float, float, float, float, bool)
    ViewExtensions.CornerRadius<T>(T, UICorner)
    ViewExtensions.Focusable<T>(T, bool)
    ViewExtensions.FocusableChildren<T>(T, bool)
    ViewExtensions.FocusableInTouch<T>(T, bool)
    ViewExtensions.ImageShadow<T>(T, ImageShadow)
    ViewExtensions.IsEnabled<T>(T, bool)
    ViewExtensions.Layout<T>(T, LayoutItem)
    ViewExtensions.Opacity<T>(T, float)
    ViewExtensions.Position<T>(T, float, float)
    ViewExtensions.PositionX<T>(T, float)
    ViewExtensions.PositionY<T>(T, float)
    ViewExtensions.Scale<T>(T, float, float)
    ViewExtensions.ScaleX<T>(T, float)
    ViewExtensions.ScaleY<T>(T, float)
    ViewExtensions.Sensitive<T>(T, bool)
    ViewExtensions.Size<T>(T, float, float)
    ViewExtensions.SizeHeight<T>(T, float)
    ViewExtensions.SizeWidth<T>(T, float)
    ViewExtensions.Visibility<T>(T, bool)
    ViewExtensions.VoiceInteractionName<T>(T, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX