Class ImageVisual
Definition
- Assembly:
- Tizen.NUI.dll
A class encapsulating the property map of the image visual.
public class ImageVisual : VisualMap
- Inheritance
Constructors
View SourceImageVisual()
Constructor.
Declaration
public ImageVisual()
Properties
View SourceAlphaMaskURL
Gets or sets the URL of the alpha mask.
Optional.
Declaration
public string AlphaMaskURL { get; set; }
Property Value
Type | Description |
---|---|
string |
BorderOnly
Gets or sets whether to draw the borders only (If true).
If not specified, the default is false.
For n-patch images only.
Optional.
Declaration
public bool BorderOnly { get; set; }
Property Value
Type | Description |
---|---|
bool |
CropToMask
Whether to crop image to mask or scale mask to fit image.
Declaration
public bool CropToMask { get; set; }
Property Value
Type | Description |
---|---|
bool |
DesiredHeight
Gets or sets the desired image height.
If not specified, the actual image height is used.
For normal quad images only.
Optional.
Declaration
public int DesiredHeight { get; set; }
Property Value
Type | Description |
---|---|
int |
DesiredWidth
Gets or sets the desired image width.
If not specified, the actual image width is used.
For normal quad images only.
Optional.
Declaration
public int DesiredWidth { get; set; }
Property Value
Type | Description |
---|---|
int |
FittingMode
Gets or sets fitting options used when resizing images to fit the desired dimensions.
If not supplied, the default is FittingModeType.ShrinkToFit.
For normal quad images only.
Optional.
Declaration
public FittingModeType FittingMode { get; set; }
Property Value
Type | Description |
---|---|
FittingModeType |
MaskContentScale
Gets or sets scale factor to apply to the content image before masking.
Declaration
public float MaskContentScale { get; set; }
Property Value
Type | Description |
---|---|
float |
PixelArea
Gets or sets the image area to be displayed.
It is a rectangular area.
The first two elements indicate the top-left position of the area, and the last two elements are the areas of the width and the height respectively.
If not specified, the default value is Vector4 (0.0, 0.0, 1.0, 1.0), i.e., the entire area of the image.
For normal quad images only.
Optional.
Declaration
public Vector4 PixelArea { get; set; }
Property Value
Type | Description |
---|---|
Vector4 |
SamplingMode
Gets or sets filtering options used when resizing images to the sample original pixels.
If not supplied, the default is SamplingModeType.Box.
For normal quad images only.
Optional.
Declaration
public SamplingModeType SamplingMode { get; set; }
Property Value
Type | Description |
---|---|
SamplingModeType |
SynchronousLoading
Gets or sets whether to load the image synchronously.
If not specified, the default is false, i.e., the image is loaded asynchronously.
For normal quad images only.
Optional.
Declaration
public bool SynchronousLoading { get; set; }
Property Value
Type | Description |
---|---|
bool |
URL
Gets or sets the URL of the image.
Mandatory.
Declaration
public string URL { get; set; }
Property Value
Type | Description |
---|---|
string |
WrapModeU
Gets or sets the wrap mode for the u coordinate.
It decides how the texture should be sampled when the u coordinate exceeds the range of 0.0 to 1.0.
If not specified, the default is WrapModeType.Default(CLAMP).
For normal quad images only.
Optional.
Declaration
public WrapModeType WrapModeU { get; set; }
Property Value
Type | Description |
---|---|
WrapModeType |
WrapModeV
Gets or sets the wrap mode for the v coordinate.
It decides how the texture should be sampled when the v coordinate exceeds the range of 0.0 to 1.0.
The first two elements indicate the top-left position of the area, and the last two elements are the areas of the width and the height respectively.
If not specified, the default is WrapModeType.Default(CLAMP).
For normal quad images only.
Optional.
Declaration
public WrapModeType WrapModeV { get; set; }
Property Value
Type | Description |
---|---|
WrapModeType |
Methods
View SourceComposingPropertyMap()
Compose the out visual map.
Declaration
protected override void ComposingPropertyMap()