Class ImageVisual

Definition

Namespace:
Tizen.NUI
Assembly:
Tizen.NUI.dll
API Level:
3

A class encapsulating the property map of the image visual.

C#
Copy
public class ImageVisual : VisualMap, IDisposable
Inheritance
System.Object
ImageVisual
Implements
System.IDisposable

Constructors

View Source

ImageVisual()

Constructor.

Declaration
C#
Copy
public ImageVisual()
API Level: 3

Properties

View Source

AlphaMaskURL

Gets or sets the URL of the alpha mask.
Optional.

Declaration
C#
Copy
public string AlphaMaskURL { get; set; }
Property Value
Type Description
System.String
API Level: 3
View Source

Atlasing

Whether to use the texture atlas or not. Optional. By default atlasing is off.

Declaration
C#
Copy
public bool Atlasing { get; set; }
Property Value
Type Description
Boolean
API Level: 5
View Source

AuxiliaryImageAlpha

An alpha value for mixing between the masked main NPatch image and the auxiliary image.

Declaration
C#
Copy
public float AuxiliaryImageAlpha { get; set; }
Property Value
Type Description
System.Single
API Level: 5
View Source

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
C#
Copy
public string AuxiliaryImageURL { get; set; }
Property Value
Type Description
System.String
API Level: 5
View Source

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
C#
Copy
public bool BorderOnly { get; set; }
Property Value
Type Description
Boolean
API Level: 3
View Source

CropToMask

Whether to crop image to mask or scale mask to fit image.

Declaration
C#
Copy
public bool CropToMask { get; set; }
Property Value
Type Description
Boolean
API Level: 4
View Source

DesiredHeight

Gets or sets the desired image height.
If not specified, the actual image height is used.
For normal quad images only.
Optional.

Declaration
C#
Copy
public int DesiredHeight { get; set; }
Property Value
Type Description
Int32
API Level: 3
View Source

DesiredWidth

Gets or sets the desired image width.
If not specified, the actual image width is used.
For normal quad images only.
Optional.

Declaration
C#
Copy
public int DesiredWidth { get; set; }
Property Value
Type Description
Int32
API Level: 3
View Source

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
C#
Copy
public FittingModeType FittingMode { get; set; }
Property Value
Type Description
FittingModeType
API Level: 3
View Source

LoadPolicy

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
C#
Copy
public LoadPolicyType LoadPolicy { get; set; }
Property Value
Type Description
LoadPolicyType
API Level: 5
View Source

MaskContentScale

Gets or sets scale factor to apply to the content image before masking.

Declaration
C#
Copy
public float MaskContentScale { get; set; }
Property Value
Type Description
System.Single
API Level: 4
View Source

OrientationCorrection

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
C#
Copy
public bool OrientationCorrection { get; set; }
Property Value
Type Description
Boolean
API Level: 5
View Source

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
C#
Copy
public Vector4 PixelArea { get; set; }
Property Value
Type Description
Vector4
API Level: 3
View Source

ReleasePolicy

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
C#
Copy
public ReleasePolicyType ReleasePolicy { get; set; }
Property Value
Type Description
ReleasePolicyType
API Level: 5
View Source

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
C#
Copy
public SamplingModeType SamplingMode { get; set; }
Property Value
Type Description
SamplingModeType
API Level: 3
View Source

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
C#
Copy
public bool SynchronousLoading { get; set; }
Property Value
Type Description
Boolean
API Level: 3
View Source

URL

Gets or sets the URL of the image.
Mandatory.

Declaration
C#
Copy
public string URL { get; set; }
Property Value
Type Description
System.String
API Level: 3
View Source

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
C#
Copy
public WrapModeType WrapModeU { get; set; }
Property Value
Type Description
WrapModeType
API Level: 3
View Source

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
C#
Copy
public WrapModeType WrapModeV { get; set; }
Property Value
Type Description
WrapModeType
API Level: 3

Methods

View Source

ComposingPropertyMap()

Compose the out visual map.

Declaration
C#
Copy
protected override void ComposingPropertyMap()
Overrides
API Level: 3

Implements

System.IDisposable