Class ImageVisual
Definition
- Namespace:
- Tizen.NUI
- Assembly:
- Tizen.NUI.dll
- API Level:
- 3
A class encapsulating the property map of the image visual.
public class ImageVisual : VisualMap
- Inheritance
Constructors
View SourceImageVisual()
Constructor.
Declaration
public ImageVisual()
API Level: 3
Properties
View SourceAlphaMaskURL
Gets or sets the URL of the alpha mask.
Optional.
Declaration
public string AlphaMaskURL { get; set; }
Property Value
Type | Description |
---|---|
String |
API Level: 3
View SourceAtlasing
Whether to use the texture atlas or not. Optional. By default atlasing is off.
Declaration
public bool Atlasing { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
API Level: 5
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 |
---|---|
Single |
API Level: 5
View SourceAuxiliaryImageURL
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 |
API Level: 5
View SourceBorderOnly
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 |
---|---|
Boolean |
API Level: 3
View SourceCropToMask
Whether to crop image to mask or scale mask to fit image.
Declaration
public bool CropToMask { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
API Level: 4
View SourceDesiredHeight
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 |
---|---|
Int32 |
API Level: 3
View SourceDesiredWidth
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 |
---|---|
Int32 |
API Level: 3
View SourceFittingMode
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 |
API Level: 3
View SourceLoadPolicy
Gets or sets the Image Visual image loading policy.
It decides if a texture should be loaded immediately after source set or only after the visual is added to the window.
Declaration
public LoadPolicyType LoadPolicy { get; set; }
Property Value
Type | Description |
---|---|
LoadPolicyType |
API Level: 5
View SourceMaskContentScale
Gets or sets scale factor to apply to the content image before masking.
Declaration
public float MaskContentScale { get; set; }
Property Value
Type | Description |
---|---|
Single |
API Level: 4
View SourceOrientationCorrection
Gets or sets whether to automatically correct the orientation based on the Exchangeable Image File (EXIF) data.
If not specified, the default is true.
For JPEG images only.
Optional.
Declaration
public bool OrientationCorrection { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
API Level: 5
View SourcePixelArea
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 |
API Level: 3
View SourceReleasePolicy
Gets or sets the Image Visual release policy.
It decides if a texture should be released from the cache or kept to reduce the loading time.
Declaration
public ReleasePolicyType ReleasePolicy { get; set; }
Property Value
Type | Description |
---|---|
ReleasePolicyType |
API Level: 5
View SourceSamplingMode
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 |
API Level: 3
View SourceSynchronousLoading
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 |
---|---|
Boolean |
API Level: 3
View SourceURL
Gets or sets the URL of the image.
Mandatory.
Declaration
public string URL { get; set; }
Property Value
Type | Description |
---|---|
String |
API Level: 3
View SourceWrapModeU
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 |
API Level: 3
View SourceWrapModeV
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 |
API Level: 3
Methods
View SourceComposingPropertyMap()
Compose the out visual map.
Declaration
protected override void ComposingPropertyMap()