Class SceneViewExtension

    Definition

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

    Extension methods for SceneView to manipulate alpha mask URL, mask content scale factor, and crop to mask settings.

    public static class SceneViewExtension
    Inheritance
    object
    SceneViewExtension

    Methods

    View Source

    EnableCropToMask(SceneView, bool)

    Enables or disables cropping to the mask for the SceneView.

    Declaration
    public static void EnableCropToMask(this SceneView sceneView, bool enableCropToMask)
    Parameters
    Type Name Description
    SceneView sceneView

    The SceneView instance to apply the property.

    bool enableCropToMask

    True to enable cropping to the mask, false otherwise.

    View Source

    GetAlphaMaskUrl(SceneView)

    Retrieves the URL of the alpha mask for the SceneView.

    Declaration
    public static string GetAlphaMaskUrl(this SceneView sceneView)
    Parameters
    Type Name Description
    SceneView sceneView

    The SceneView instance to retrieve the property from.

    Returns
    Type Description
    string

    The URL of the alpha mask image.

    View Source

    GetMaskContentScaleFactor(SceneView)

    Retrieves the content scale factor for the mask applied to the SceneView.

    Declaration
    public static float GetMaskContentScaleFactor(this SceneView sceneView)
    Parameters
    Type Name Description
    SceneView sceneView

    The SceneView instance to retrieve the property from.

    Returns
    Type Description
    float

    The scaling factor for the mask content.

    View Source

    IsEnabledCropToMask(SceneView)

    Checks if cropping to the mask is enabled for the SceneView.

    Declaration
    public static bool IsEnabledCropToMask(this SceneView sceneView)
    Parameters
    Type Name Description
    SceneView sceneView

    The SceneView instance to retrieve the property from.

    Returns
    Type Description
    bool

    True if cropping to the mask is enabled, false otherwise.

    View Source

    SetAlphaMaskUrl(SceneView, string)

    Sets the URL of the alpha mask for the SceneView.

    Declaration
    public static void SetAlphaMaskUrl(this SceneView sceneView, string url)
    Parameters
    Type Name Description
    SceneView sceneView

    The SceneView instance to apply the property.

    string url

    The URL of the alpha mask image.

    View Source

    SetMaskContentScaleFactor(SceneView, float)

    Sets the content scale factor for the mask applied to the SceneView.

    Declaration
    public static void SetMaskContentScaleFactor(this SceneView sceneView, float factor)
    Parameters
    Type Name Description
    SceneView sceneView

    The SceneView instance to apply the property.

    float factor

    The scaling factor for the mask content.

    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX