Class ImageView

Definition

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

ImageView is a class for displaying an image resource.
An instance of ImageView can be created using a URL or an image instance.

C#
Copy
public class ImageView : View, IDisposable
Inheritance
Derived
Tizen.NUI.BaseComponents.AnimatedImageView
Tizen.NUI.BaseComponents.LottieAnimationView
Tizen.NUI.BaseComponents.LottieAnimationView
Tizen.NUI.BaseComponents.LottieAnimationView
Tizen.NUI.BaseComponents.LottieAnimationView
Tizen.NUI.BaseComponents.LottieAnimationView
Implements
System.IDisposable

Constructors

View Source

ImageView()

Creates an initialized ImageView.

Declaration
C#
Copy
public ImageView()
API Level: 3
View Source

ImageView(String)

Creates an initialized ImageView from a URL to an image resource.
If the string is empty, ImageView will not display anything.

Declaration
C#
Copy
public ImageView(string url)
Parameters
Type Name Description
System.String url

The URL of the image resource to display.

API Level: 3

Properties

View Source

Border

The border of the image in the order: left, right, bottom, top.
If set, ImageMap will be ignored.
For N-Patch images only.
Optional.

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

Image

ImageView Image, type PropertyMap

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

PixelArea

ImageView PixelArea, type Vector4 (Animatable property).
Pixel area is a relative value with the whole image area as [0.0, 0.0, 1.0, 1.0].

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

PreMultipliedAlpha

ImageView PreMultipliedAlpha, type Boolean.
Image must be initialized.

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

ResourceUrl

ImageView ResourceUrl, type string.

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

SynchronosLoading

Gets or sets whether to synchronos loading the resourceurl of image.

Declaration
C#
Copy
public bool SynchronosLoading { get; set; }
Property Value
Type Description
Boolean
API Level: 3

Methods

View Source

Dispose(DisposeTypes)

you can override it to clean-up your own resources.

Declaration
C#
Copy
protected override void Dispose(DisposeTypes type)
Parameters
Type Name Description
DisposeTypes type

DisposeTypes

Overrides
API Level: 3
View Source

IsResourceReady()

Queries if all resources required by a control are loaded and ready.
Most resources are only loaded when the control is placed on the stage.
True if the resources are loaded and ready, false otherwise.

Declaration
C#
Copy
public bool IsResourceReady()
Returns
Type Description
Boolean
API Level: 3
View Source

SetImage(String)

Sets this ImageView from the given URL.
If the URL is empty, ImageView will not display anything.

Declaration
C#
Copy
public void SetImage(string url)
Parameters
Type Name Description
System.String url

The URL to the image resource to display.

API Level: 3

Events

View Source

ResourceReady

An event for ResourceReady signal which can be used to subscribe or unsubscribe the event handler.
This signal is emitted after all resources required by a control are loaded and ready.
Most resources are only loaded when the control is placed on the stage.

Declaration
C#
Copy
public event EventHandler<ImageView.ResourceReadyEventArgs> ResourceReady
Event Type
Type Description
System.EventHandler<ImageView.ResourceReadyEventArgs>
API Level: 3

Implements

System.IDisposable