[NUI] Fix ABI break for API8 NUI image
authorDongsug Song <dongsug.song@samsung.com>
Mon, 31 May 2021 10:14:09 +0000 (19:14 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 1 Jun 2021 08:03:31 +0000 (17:03 +0900)
- GetOriginalImageSize() was Hidden API and it was changed as to use default parameter in API9.
- This caused ABI break for tizen_6.0 application which references API9 NUI dll.
- Revert back to API8's GetOriginalImageSize() method form.

src/Tizen.NUI/src/public/Images/ImageLoading.cs

index 560a754..3a627d8 100755 (executable)
@@ -259,11 +259,23 @@ namespace Tizen.NUI
         /// Get the size of an original image consider rotation
         /// </summary>
         /// <param name="filename">The name of the image.</param>
+        /// <returns>Dimension of the original image.</returns>
+        /// <remarks>Hidden API: Only for inhouse or developing usage. The behavior and interface can be changed anytime.</remarks>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public static Size2D GetOriginalImageSize(string filename)
+        {
+            return GetOriginalImageSize(filename, true);
+        }
+
+        /// <summary>
+        /// Get the size of an original image consider rotation
+        /// </summary>
+        /// <param name="filename">The name of the image.</param>
         /// <param name="orientationCorrection">Reorient the image to respect any orientation metadata in its header.</param>
         /// <returns>Dimension of the original image.</returns>
         /// <remarks>Hidden API: Only for inhouse or developing usage. The behavior and interface can be changed anytime.</remarks>
         [EditorBrowsable(EditorBrowsableState.Never)]
-        public static Size2D GetOriginalImageSize(string filename, bool orientationCorrection = true)
+        public static Size2D GetOriginalImageSize(string filename, bool orientationCorrection)
         {
             var val = new Uint16Pair(Interop.ImageLoading.GetOriginalImageSize(filename, orientationCorrection), true);
             Size2D ret = new Size2D(val.GetWidth(), val.GetHeight());