[NUI] Make NativeImageSourceQueue.ColorFormat RGBA works as RGBA order
authorEunki, Hong <eunkiki.hong@samsung.com>
Wed, 21 Aug 2024 04:12:16 +0000 (13:12 +0900)
committerSangHyeon Jade Lee <dltkdgus1764@gmail.com>
Wed, 4 Sep 2024 09:37:54 +0000 (18:37 +0900)
Until now, RGBA works as BGRA order internally.

It will make confuse to user. So we make BGR format at this PR #4383

Now it spend 2 years, and version changed as tizen_9.0
It is good time to change behavior of ColorFormat.RGBA8888

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
src/Tizen.NUI/src/public/Images/NativeImageQueue.cs

index 2146259fc311f51486be71a5f0f65659e94be27f..9cc8aa0b980aca875a643d22be53842213046c45 100644 (file)
@@ -26,7 +26,7 @@ namespace Tizen.NUI
     /// </summary>
     /// <example>
     /// <code>
-    /// NativeImageQueue queue = new NativeImageQueue(width,height,ColorFormat.RGBA8888);
+    /// NativeImageQueue queue = new NativeImageQueue(width,height,ColorFormat.BGRA8888);
     /// if(queue.CanDequeueBuffer())
     /// {
     ///   var buffer = queue.DequeueBuffer(ref bufferWidth,ref bufferHeight,ref bufferStride);
@@ -63,20 +63,17 @@ namespace Tizen.NUI
             /// <summary>
             /// 8 red bits, 8 green bits, 8 blue bits
             /// </summary>
-            [System.ObsoleteAttribute("This property is obsolete. It's behavior could be changed in a future version. Currently it is same as BGR888", false)]
-            RGB888 = 0,
+            RGB888 = 3,
 
             /// <summary>
             /// 8 red bits, 8 green bits, 8 blue bits, alpha 8 bits
             /// </summary>
-            [System.ObsoleteAttribute("This property is obsolete. It's behavior could be changed in a future version. Currently it is same as BGRA8888", false)]
-            RGBA8888 = 1,
+            RGBA8888 = 4,
 
             /// <summary>
             /// 8 red bits, 8 green bits, 8 blue bits, and 8 ignored bits
             /// </summary>
-            [System.ObsoleteAttribute("This property is obsolete. It's behavior could be changed in a future version. Currently it is same as BGRX8888", false)]
-            RGBX8888 = 2,
+            RGBX8888 = 5,
         }
 
         /// <summary>