From: dongsug.song Date: Tue, 18 May 2021 02:26:29 +0000 (+0900) Subject: [NUI] Revert ImageLoading's access modifier X-Git-Tag: accepted/tizen/unified/20231205.024657~1869 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=234087db5d1d7993d17b9a251552c65c7d62f83f;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Revert ImageLoading's access modifier - In API6 ~ API8, this has been "public class", not "public static class". - To support not-rebuilt API6~API8's Application, this is reverted bact to "public class". --- diff --git a/src/Tizen.NUI/src/public/Images/ImageLoading.cs b/src/Tizen.NUI/src/public/Images/ImageLoading.cs index f1f1096..560a754 100755 --- a/src/Tizen.NUI/src/public/Images/ImageLoading.cs +++ b/src/Tizen.NUI/src/public/Images/ImageLoading.cs @@ -23,10 +23,11 @@ namespace Tizen.NUI /// /// Loading an image. /// - /// 5 - /// This will be released at Tizen.NET API Level 5. Therefore, currently this would be used as an in-house API. + /// Hidden API: Only for inhouse or developing usage. The behavior and interface can be changed anytime. [EditorBrowsable(EditorBrowsableState.Never)] - public static class ImageLoading + // in API6 ~ API8, this has been "public class", not "public static class". to support not-rebuilt API6~API8's Application, this is reverted bact to "public class". + [System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "CA1052:Static holder types should be Static or NotInheritable", Justification = "")] + public class ImageLoading { /// /// Load an image synchronously from local file. @@ -38,8 +39,7 @@ namespace Tizen.NUI /// Reorient the image to respect any orientation metadata in its header. /// Handle to the loaded PixelBuffer object or an empty handle in case loading failed. /// Thrown when size is null. - /// 5 - /// This will be released at Tizen.NET API Level 5. Therefore, currently this would be used as an in-house API. + /// Hidden API: Only for inhouse or developing usage. The behavior and interface can be changed anytime. [EditorBrowsable(EditorBrowsableState.Never)] public static PixelBuffer LoadImageFromFile(string url, Size2D size, FittingModeType fittingMode, SamplingModeType samplingMode, bool orientationCorrection) { @@ -63,8 +63,7 @@ namespace Tizen.NUI /// The filtering method used when sampling pixels from the input image while fitting it to desired size. /// Handle to the loaded PixelBuffer object or an empty handle in case loading failed. /// Thrown when size is null. - /// 5 - /// This will be released at Tizen.NET API Level 5, so currently this would be used as inhouse API. + /// Hidden API: Only for inhouse or developing usage. The behavior and interface can be changed anytime. [EditorBrowsable(EditorBrowsableState.Never)] public static PixelBuffer LoadImageFromFile(string url, Size2D size, FittingModeType fittingMode, SamplingModeType samplingMode) { @@ -87,8 +86,7 @@ namespace Tizen.NUI /// The method used to fit the shape of the image before loading to the shape defined by the size parameter. /// Handle to the loaded PixelBuffer object or an empty handle in case loading failed. /// Thrown when size is null. - /// 5 - /// This will be released at Tizen.NET API Level 5. Therefore, currently this would be used as an in-house API. + /// Hidden API: Only for inhouse or developing usage. The behavior and interface can be changed anytime. [EditorBrowsable(EditorBrowsableState.Never)] public static PixelBuffer LoadImageFromFile(string url, Size2D size, FittingModeType fittingMode) { @@ -110,8 +108,7 @@ namespace Tizen.NUI /// The width and height to fit the loaded image to, 0.0 means whole image. /// Handle to the loaded PixelBuffer object or an empty handle in case loading failed. /// Thrown when size is null. - /// 5 - /// This will be released at Tizen.NET API Level 5. Therefore, currently this would be used as an in-house API. + /// Hidden API: Only for inhouse or developing usage. The behavior and interface can be changed anytime. [EditorBrowsable(EditorBrowsableState.Never)] public static PixelBuffer LoadImageFromFile(string url, Size2D size) { @@ -131,8 +128,7 @@ namespace Tizen.NUI /// /// The URL of the image file to load. /// Handle to the loaded PixelBuffer object or an empty handle in case loading failed. - /// 5 - /// This will be released at Tizen.NET API Level 5. Therefore, currently this would be used as an in-house API. + /// Hidden API: Only for inhouse or developing usage. The behavior and interface can be changed anytime. [EditorBrowsable(EditorBrowsableState.Never)] public static PixelBuffer LoadImageFromFile(string url) { @@ -151,8 +147,7 @@ namespace Tizen.NUI /// Whether to use image metadata to rotate or flip the image, for example, from portrait to landscape. /// Dimensions that image will have if it is loaded with given parameters. /// Thrown when size is null. - /// 5 - /// This will be released at Tizen.NET API Level 5. Therefore, currently this would be used as an in-house API. + /// Hidden API: Only for inhouse or developing usage. The behavior and interface can be changed anytime. [EditorBrowsable(EditorBrowsableState.Never)] public static Size2D GetClosestImageSize(string filename, Size2D size, FittingModeType fittingMode, SamplingModeType samplingMode, bool orientationCorrection) { @@ -178,8 +173,7 @@ namespace Tizen.NUI /// The image filter to use if the image needs to be downsampled to the requested size. /// Dimensions that image will have if it is loaded with given parameters. /// Thrown when size is null. - /// 5 - /// This will be released at Tizen.NET API Level 5. Therefore, currently this would be used as an in-house API. + /// Hidden API: Only for inhouse or developing usage. The behavior and interface can be changed anytime. [EditorBrowsable(EditorBrowsableState.Never)] public static Size2D GetClosestImageSize(string filename, Size2D size, FittingModeType fittingMode, SamplingModeType samplingMode) { @@ -204,8 +198,7 @@ namespace Tizen.NUI /// The method to use to map the source image to the desired dimensions. /// Dimensions that image will have if it is loaded with given parameters. /// Thrown when size is null. - /// 5 - /// This will be released at Tizen.NET API Level 5. Therefore, currently this would be used as an in-house API. + /// Hidden API: Only for inhouse or developing usage. The behavior and interface can be changed anytime. [EditorBrowsable(EditorBrowsableState.Never)] public static Size2D GetClosestImageSize(string filename, Size2D size, FittingModeType fittingMode) { @@ -229,8 +222,7 @@ namespace Tizen.NUI /// The requested size for the image /// Dimensions that image will have if it is loaded with given parameters. /// Thrown when size is null. - /// 5 - /// This will be released at Tizen.NET API Level 5. Therefore, currently this would be used as an in-house API. + /// Hidden API: Only for inhouse or developing usage. The behavior and interface can be changed anytime. [EditorBrowsable(EditorBrowsableState.Never)] public static Size2D GetClosestImageSize(string filename, Size2D size) { @@ -252,8 +244,7 @@ namespace Tizen.NUI /// /// The name of the image. /// Dimensions that image will have if it is loaded with given parameters. - /// 5 - /// This will be released at Tizen.NET API Level 5. Therefore, currently this would be used as an in-house API. + /// Hidden API: Only for inhouse or developing usage. The behavior and interface can be changed anytime. [EditorBrowsable(EditorBrowsableState.Never)] public static Size2D GetClosestImageSize(string filename) { @@ -270,8 +261,7 @@ namespace Tizen.NUI /// The name of the image. /// Reorient the image to respect any orientation metadata in its header. /// Dimension of the original image. - /// 6 - /// This will be released at Tizen.NET API Level 9. Therefore, currently this would be used as an in-house API. + /// Hidden API: Only for inhouse or developing usage. The behavior and interface can be changed anytime. [EditorBrowsable(EditorBrowsableState.Never)] public static Size2D GetOriginalImageSize(string filename, bool orientationCorrection = true) { @@ -292,8 +282,7 @@ namespace Tizen.NUI /// Reorient the image to respect any orientation metadata in its header. /// Handle to the loaded PixelBuffer object or an empty handle in case downloading or decoding failed. /// Thrown when size is null. - /// 5 - /// This will be released at Tizen.NET API Level 5. Therefore, currently this would be used as an in-house API. + /// Hidden API: Only for inhouse or developing usage. The behavior and interface can be changed anytime. [EditorBrowsable(EditorBrowsableState.Never)] public static PixelBuffer DownloadImageSynchronously(string url, Size2D size, FittingModeType fittingMode, SamplingModeType samplingMode, bool orientationCorrection) { @@ -317,8 +306,7 @@ namespace Tizen.NUI /// The filtering method used when sampling pixels from the input image while fitting it to desired size. /// Handle to the loaded PixelBuffer object or an empty handle in case downloading or decoding failed. /// Thrown when size is null. - /// 5 - /// This will be released at Tizen.NET API Level 5. Therefore, currently this would be used as an in-house API. + /// Hidden API: Only for inhouse or developing usage. The behavior and interface can be changed anytime. [EditorBrowsable(EditorBrowsableState.Never)] public static PixelBuffer DownloadImageSynchronously(string url, Size2D size, FittingModeType fittingMode, SamplingModeType samplingMode) { @@ -341,8 +329,7 @@ namespace Tizen.NUI /// The method used to fit the shape of the image before loading to the shape defined by the size parameter. /// Handle to the loaded PixelBuffer object or an empty handle in case downloading or decoding failed. /// Thrown when size is null. - /// 5 - /// This will be released at Tizen.NET API Level 5. Therefore, currently this would be used as an in-house API. + /// Hidden API: Only for inhouse or developing usage. The behavior and interface can be changed anytime. [EditorBrowsable(EditorBrowsableState.Never)] public static PixelBuffer DownloadImageSynchronously(string url, Size2D size, FittingModeType fittingMode) { @@ -368,6 +355,7 @@ namespace Tizen.NUI /// Handle to the loaded PixelBuffer object or an empty handle in case downloading or decoding failed. /// Thrown when size is null. /// Thrown when uri is null. + /// Hidden API: Only for inhouse or developing usage. The behavior and interface can be changed anytime. [EditorBrowsable(EditorBrowsableState.Never)] public static PixelBuffer DownloadImageSynchronously(Uri uri, Size2D size, FittingModeType fittingMode) { @@ -394,8 +382,7 @@ namespace Tizen.NUI /// The width and height to fit the loaded image to, 0.0 means whole image. /// Handle to the loaded PixelBuffer object or an empty handle in case downloading or decoding failed. /// Thrown when size is null. - /// 5 - /// This will be released at Tizen.NET API Level 5. Therefore, currently this would be used as an in-house API. + /// Hidden API: Only for inhouse or developing usage. The behavior and interface can be changed anytime. [EditorBrowsable(EditorBrowsableState.Never)] public static PixelBuffer DownloadImageSynchronously(string url, Size2D size) { @@ -415,8 +402,7 @@ namespace Tizen.NUI /// /// The URL of the image file to load. /// Handle to the loaded PixelBuffer object or an empty handle in case downloading or decoding failed. - /// 5 - /// This will be released at Tizen.NET API Level 5. Therefore, currently this would be used as an in-house API. + /// Hidden API: Only for inhouse or developing usage. The behavior and interface can be changed anytime. [EditorBrowsable(EditorBrowsableState.Never)] public static PixelBuffer DownloadImageSynchronously(string url) {