/// <summary>
/// Gets or sets the resource url of the thumb image object.
///
- /// Please use ThumbImageUri property.
+ /// Please use ThumbImageUrl property.
/// </summary>
/// <since_tizen> 6 </since_tizen>
public string ThumbImageURL
/// Gets or sets the resource url selector of the thumb image object.
/// Getter returns copied selector value if exist, null otherwise.
///
- /// Please use ThumbImageUri property.
+ /// Please use ThumbImageUrl property.
/// </summary>
/// <exception cref="NullReferenceException">Thrown when setting null value.</exception>
/// <since_tizen> 6 </since_tizen>
}
/// <summary>
- /// Gets or sets the Uri of the thumb image.
+ /// Gets or sets the Url of the thumb image.
/// </summary>
/// <exception cref="NullReferenceException">Thrown when setting null value.</exception>
/// This will be public opened later after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- public Selector<Uri> ThumbImageUri
+ public Selector<string> ThumbImageUrl
{
get
{
}
else
{
- return ((Selector<string>)thumbImage.GetValue(ImageView.ResourceUrlSelectorProperty)).Clone<Uri>(str => { return new Uri(str); });
+ return (Selector<string>)thumbImage.GetValue(ImageView.ResourceUrlSelectorProperty);
}
}
set
{
if (value == null || thumbImage == null)
{
- throw new NullReferenceException("Slider.ThumbImageUri is null");
+ throw new NullReferenceException("Slider.ThumbImageUrl is null");
}
else
{
- Selector<string> stringValue = value.Clone<string>(m => m?.AbsoluteUri);
- thumbImage.SetValue(ImageView.ResourceUrlSelectorProperty, stringValue);
- thumbImageUrlSelector = stringValue;
+ thumbImage.SetValue(ImageView.ResourceUrlSelectorProperty, value);
+ thumbImageUrlSelector = value;
}
}
}
}
/// <summary>
- /// Gets or sets the resource url of the warning thumb image object.
- /// </summary>
- /// This will be public opened later after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public string WarningThumbImageUrl
- {
- get
- {
- return warningThumbImageUrl;
- }
- set
- {
- warningThumbImageUrl = value;
- }
- }
-
- /// <summary>
- /// Gets or sets the Uri of the warning thumb image.
+ /// Gets or sets the Url of the warning thumb image.
/// </summary>
/// <exception cref="NullReferenceException">Thrown when setting null value.</exception>
/// This will be public opened later after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- public Selector<Uri> WarningThumbImageUri
+ public Selector<string> WarningThumbImageUrl
{
get
{
- return warningThumbImageUrlSelector?.Clone<Uri>(str => { return new Uri(str); });
+ return warningThumbImageUrlSelector;
}
set
{
if (value == null || thumbImage == null)
{
- throw new NullReferenceException("Slider.WarningThumbImageUri is null");
+ throw new NullReferenceException("Slider.WarningThumbImageUrl is null");
}
else
{
- warningThumbImageUrlSelector = value.Clone<string>(m => m?.AbsoluteUri);
+ warningThumbImageUrlSelector = value;
}
}
}
}
/// <summary>
- /// Hidden API (Inhouse API).
- /// Using Uri class to provide safe service and secure API.
- /// Load an image synchronously from local file.
- /// </summary>
- /// <param name="uri">The URI of the image file to load.</param>
- /// <param name="size">The width and height to fit the loaded image to, 0.0 means whole image.</param>
- /// <param name="fittingMode">The method used to fit the shape of the image before loading to the shape defined by the size parameter.</param>
- /// <param name="samplingMode">The filtering method used when sampling pixels from the input image while fitting it to desired size.</param>
- /// <param name="orientationCorrection">Reorient the image to respect any orientation metadata in its header.</param>
- /// <returns>Handle to the loaded PixelBuffer object or an empty handle in case loading failed.</returns>
- /// <exception cref="ArgumentNullException">Thrown when size is null.</exception>
- /// <exception cref="ArgumentNullException">Thrown when uri is null.</exception>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static PixelBuffer LoadImageFromFile(Uri uri, Size2D size, FittingModeType fittingMode, SamplingModeType samplingMode, bool orientationCorrection)
- {
- if (null == size)
- {
- throw new ArgumentNullException(nameof(size));
- }
- if (uri == null)
- {
- throw new ArgumentNullException(nameof(uri));
- }
-
- PixelBuffer ret;
- using (var uSize = new Uint16Pair((uint)size.Width, (uint)size.Height))
- {
- ret = new PixelBuffer(Interop.ImageLoading.LoadImageFromFile(uri.AbsoluteUri, Uint16Pair.getCPtr(uSize), (int)fittingMode, (int)samplingMode, orientationCorrection), true);
- }
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- /// <summary>
/// Load an image synchronously from local file.
/// </summary>
/// <param name="url">The URL of the image file to load.</param>
}
/// <summary>
- /// Hidden API (Inhouse API).
- /// Using Uri class to provide safe service and secure API.
- /// Load an image synchronously from local file.
- /// </summary>
- /// <param name="uri">The URI of the image file to load.</param>
- /// <param name="size">The width and height to fit the loaded image to, 0.0 means whole image.</param>
- /// <param name="fittingMode">The method used to fit the shape of the image before loading to the shape defined by the size parameter.</param>
- /// <param name="samplingMode">The filtering method used when sampling pixels from the input image while fitting it to desired size.</param>
- /// <returns>Handle to the loaded PixelBuffer object or an empty handle in case loading failed.</returns>
- /// <exception cref="ArgumentNullException"> Thrown when size is null. </exception>
- /// <exception cref="ArgumentNullException">Thrown when uri is null.</exception>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static PixelBuffer LoadImageFromFile(Uri uri, Size2D size, FittingModeType fittingMode, SamplingModeType samplingMode)
- {
- if (null == size)
- {
- throw new ArgumentNullException(nameof(size));
- }
- if (uri == null)
- {
- throw new ArgumentNullException(nameof(uri));
- }
-
- var uSize = new Uint16Pair((uint)size.Width, (uint)size.Height);
- PixelBuffer ret = new PixelBuffer(Interop.ImageLoading.LoadImageFromFile(uri.AbsoluteUri, Uint16Pair.getCPtr(uSize), (int)fittingMode, (int)samplingMode), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-
- uSize.Dispose();
- return ret;
- }
-
- /// <summary>
/// Load an image synchronously from local file.
/// </summary>
/// <param name="url">The URL of the image file to load.</param>
}
/// <summary>
- /// Hidden API (Inhouse API).
- /// Using Uri class to provide safe service and secure API.
- /// Load an image synchronously from local file.
- /// </summary>
- /// <param name="uri">The URI of the image file to load.</param>
- /// <param name="size">The width and height to fit the loaded image to, 0.0 means whole image.</param>
- /// <param name="fittingMode">The method used to fit the shape of the image before loading to the shape defined by the size parameter.</param>
- /// <returns>Handle to the loaded PixelBuffer object or an empty handle in case loading failed.</returns>
- /// <exception cref="ArgumentNullException"> Thrown when size is null. </exception>
- /// <exception cref="ArgumentNullException">Thrown when uri is null.</exception>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static PixelBuffer LoadImageFromFile(Uri uri, Size2D size, FittingModeType fittingMode)
- {
- if (null == size)
- {
- throw new ArgumentNullException(nameof(size));
- }
- if (uri == null)
- {
- throw new ArgumentNullException(nameof(uri));
- }
-
- var uSize = new Uint16Pair((uint)size.Width, (uint)size.Height);
- PixelBuffer ret = new PixelBuffer(Interop.ImageLoading.LoadImageFromFile(uri.AbsoluteUri, Uint16Pair.getCPtr(uSize), (int)fittingMode), true);
- uSize.Dispose();
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- /// <summary>
/// Load an image synchronously from local file.
/// </summary>
/// <param name="url">The URL of the image file to load.</param>
}
/// <summary>
- /// Hidden API (Inhouse API).
- /// Using Uri class to provide safe service and secure API.
- /// Load an image synchronously from local file.
- /// </summary>
- /// <param name="uri">The URI of the image file to load.</param>
- /// <param name="size">The width and height to fit the loaded image to, 0.0 means whole image.</param>
- /// <returns>Handle to the loaded PixelBuffer object or an empty handle in case loading failed.</returns>
- /// <exception cref="ArgumentNullException"> Thrown when size is null. </exception>
- /// <exception cref="ArgumentNullException">Thrown when uri is null.</exception>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static PixelBuffer LoadImageFromFile(Uri uri, Size2D size)
- {
- if (null == size)
- {
- throw new ArgumentNullException(nameof(size));
- }
- if (uri == null)
- {
- throw new ArgumentNullException(nameof(uri));
- }
-
- var uSize = new Uint16Pair((uint)size.Width, (uint)size.Height);
- PixelBuffer ret = new PixelBuffer(Interop.ImageLoading.LoadImageFromFile(uri.AbsoluteUri, Uint16Pair.getCPtr(uSize)), true);
- uSize.Dispose();
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- /// <summary>
/// Load an image synchronously from local file.
/// </summary>
/// <param name="url">The URL of the image file to load.</param>
}
/// <summary>
- /// Hidden API (Inhouse API).
- /// Using Uri class to provide safe service and secure API.
- /// Load an image synchronously from local file.
- /// </summary>
- /// <param name="uri">The URI of the image file to load.</param>
- /// <returns>Handle to the loaded PixelBuffer object or an empty handle in case loading failed.</returns>
- /// <exception cref="ArgumentNullException">Thrown when uri is null.</exception>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static PixelBuffer LoadImageFromFile(Uri uri)
- {
- if (uri == null)
- {
- throw new ArgumentNullException(nameof(uri));
- }
-
- PixelBuffer ret = new PixelBuffer(Interop.ImageLoading.LoadImageFromFile(uri.AbsoluteUri), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- /// <summary>
/// Determine the size of an image that LoadImageFromFile will provide when given the same image loading parameters.
/// </summary>
/// <param name="filename">The name of the image.</param>
}
/// <summary>
- /// Hidden API (Inhouse API).
- /// Using Uri class to provide safe service and secure API.
- /// Load an image synchronously from a remote resource.
- /// </summary>
- /// <param name="uri">The URI of the image file to load.</param>
- /// <param name="size">The width and height to fit the loaded image to, 0.0 means whole image.</param>
- /// <param name="fittingMode">The method used to fit the shape of the image before loading to the shape defined by the size parameter.</param>
- /// <param name="samplingMode">The filtering method used when sampling pixels from the input image while fitting it to desired size.</param>
- /// <param name="orientationCorrection">Reorient the image to respect any orientation metadata in its header.</param>
- /// <returns>Handle to the loaded PixelBuffer object or an empty handle in case downloading or decoding failed.</returns>
- /// <exception cref="ArgumentNullException"> Thrown when size is null. </exception>
- /// <exception cref="ArgumentNullException">Thrown when uri is null.</exception>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static PixelBuffer DownloadImageSynchronously(Uri uri, Size2D size, FittingModeType fittingMode, SamplingModeType samplingMode, bool orientationCorrection)
- {
- if (null == size)
- {
- throw new ArgumentNullException(nameof(size));
- }
- if (uri == null)
- {
- throw new ArgumentNullException(nameof(uri));
- }
-
- var uSize = new Uint16Pair((uint)size.Width, (uint)size.Height);
- PixelBuffer ret = new PixelBuffer(Interop.ImageLoading.DownloadImageSynchronously(uri.AbsoluteUri, Uint16Pair.getCPtr(uSize), (int)fittingMode, (int)samplingMode, orientationCorrection), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-
- uSize.Dispose();
- return ret;
- }
-
- /// <summary>
/// Load an image synchronously from a remote resource.
/// </summary>
/// <param name="url">The URL of the image file to load.</param>
}
/// <summary>
- /// Hidden API (Inhouse API).
- /// Using Uri class to provide safe service and secure API.
- /// Load an image synchronously from a remote resource.
- /// </summary>
- /// <param name="uri">The URI of the image file to load.</param>
- /// <param name="size">The width and height to fit the loaded image to, 0.0 means whole image.</param>
- /// <param name="fittingMode">The method used to fit the shape of the image before loading to the shape defined by the size parameter.</param>
- /// <param name="samplingMode">The filtering method used when sampling pixels from the input image while fitting it to desired size.</param>
- /// <returns>Handle to the loaded PixelBuffer object or an empty handle in case downloading or decoding failed.</returns>
- /// <exception cref="ArgumentNullException"> Thrown when size is null. </exception>
- /// <exception cref="ArgumentNullException">Thrown when uri is null.</exception>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static PixelBuffer DownloadImageSynchronously(Uri uri, Size2D size, FittingModeType fittingMode, SamplingModeType samplingMode)
- {
- if (null == size)
- {
- throw new ArgumentNullException(nameof(size));
- }
- if (uri == null)
- {
- throw new ArgumentNullException(nameof(uri));
- }
-
- var uSize = new Uint16Pair((uint)size.Width, (uint)size.Height);
- PixelBuffer ret = new PixelBuffer(Interop.ImageLoading.DownloadImageSynchronously(uri.AbsoluteUri, Uint16Pair.getCPtr(uSize), (int)fittingMode, (int)samplingMode), true);
- uSize.Dispose();
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- /// <summary>
/// Load an image synchronously from a remote resource.
/// </summary>
/// <param name="url">The URL of the image file to load.</param>
}
/// <summary>
- /// Hidden API (Inhouse API).
- /// Using Uri class to provide safe service and secure API.
- /// Load an image synchronously from a remote resource.
- /// </summary>
- /// <param name="uri">The URI of the image file to load.</param>
- /// <param name="size">The width and height to fit the loaded image to, 0.0 means whole image.</param>
- /// <returns>Handle to the loaded PixelBuffer object or an empty handle in case downloading or decoding failed.</returns>
- /// <exception cref="ArgumentNullException"> Thrown when size is null. </exception>
- /// <exception cref="ArgumentNullException">Thrown when uri is null.</exception>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static PixelBuffer DownloadImageSynchronously(Uri uri, Size2D size)
- {
- if (null == size)
- {
- throw new ArgumentNullException(nameof(size));
- }
- if (uri == null)
- {
- throw new ArgumentNullException(nameof(uri));
- }
-
- var uSize = new Uint16Pair((uint)size.Width, (uint)size.Height);
- PixelBuffer ret = new PixelBuffer(Interop.ImageLoading.DownloadImageSynchronously(uri.AbsoluteUri, Uint16Pair.getCPtr(uSize)), true);
- uSize.Dispose();
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- /// <summary>
/// Load an image synchronously from a remote resource.
/// </summary>
/// <param name="url">The URL of the image file to load.</param>
return ret;
}
- /// <summary>
- /// Hidden API (Inhouse API).
- /// Using Uri class to provide safe service and secure API.
- /// Load an image synchronously from a remote resource.
- /// </summary>
- /// <param name="uri">The URI of the image file to load.</param>
- /// <returns>Handle to the loaded PixelBuffer object or an empty handle in case downloading or decoding failed.</returns>
- /// <exception cref="ArgumentNullException">Thrown when uri is null.</exception>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static PixelBuffer DownloadImageSynchronously(Uri uri)
- {
- if (uri == null)
- {
- throw new ArgumentNullException(nameof(uri));
- }
-
- PixelBuffer ret = new PixelBuffer(Interop.ImageLoading.DownloadImageSynchronously(uri.AbsoluteUri), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
}
}