Class SceneViewExtension
Definition
- 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
-
objectSceneViewExtension
Methods
View SourceEnableCropToMask(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. |
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. |
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. |
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. |
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. |
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. |