Class NPatchVisual
Definition
- Assembly:
- Tizen.NUI.dll
The visual which can display an n-patch image resource. It will be used when we want to display n-patch image, border only n-patch, or make regular image stretched.
public class NPatchVisual : ImageVisual, IDynamicResourceHandler, INameScope, System.IDisposable
- Inheritance
- Implements
-
System.IDisposable
Remarks
Following ImageVisual properties are not supported in NPatchVisual.
- CornerRadius
- BorderlineWidth
- AlphaMaskUrl
Constructors
View SourceNPatchVisual()
Creates an visual object.
Declaration
public NPatchVisual()
Remarks
Following ImageVisual properties are not supported in NPatchVisual.
- CornerRadius
- BorderlineWidth
- AlphaMaskUrl
Properties
View SourceAuxiliaryImageAlpha
An alpha value for mixing between the masked main NPatch image and the auxiliary image.
Declaration
public float AuxiliaryImageAlpha { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
Remarks
Following ImageVisual properties are not supported in NPatchVisual.
- CornerRadius
- BorderlineWidth
- AlphaMaskUrl
AuxiliaryImageUrl
Overlays the auxiliary image on top of an NPatch image. The resulting visual image will be at least as large as the smallest possible n-patch or the auxiliary image, whichever is larger.
Declaration
public string AuxiliaryImageUrl { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
Following ImageVisual properties are not supported in NPatchVisual.
- CornerRadius
- BorderlineWidth
- AlphaMaskUrl
Border
The border of the regular image is in the order: left, right, bottom, top.
Declaration
public Rectangle Border { get; set; }
Property Value
| Type | Description |
|---|---|
| Rectangle |
Remarks
Note that it is not mean the value from 9 patch image.
BorderOnly
Gets or sets whether to draw the borders only (If true).
If not specified, the default is false.
Declaration
public bool BorderOnly { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
Following ImageVisual properties are not supported in NPatchVisual.
- CornerRadius
- BorderlineWidth
- AlphaMaskUrl