From: Eunki, Hong Date: Wed, 21 Aug 2024 04:12:16 +0000 (+0900) Subject: [NUI] Make NativeImageSourceQueue.ColorFormat RGBA works as RGBA order X-Git-Tag: submit/tizen/20240904.094149~1^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8db15b92eceafb675e880f2597fcd3434e41ac0f;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Make NativeImageSourceQueue.ColorFormat RGBA works as RGBA order 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 --- diff --git a/src/Tizen.NUI/src/public/Images/NativeImageQueue.cs b/src/Tizen.NUI/src/public/Images/NativeImageQueue.cs index 2146259fc..9cc8aa0b9 100644 --- a/src/Tizen.NUI/src/public/Images/NativeImageQueue.cs +++ b/src/Tizen.NUI/src/public/Images/NativeImageQueue.cs @@ -26,7 +26,7 @@ namespace Tizen.NUI /// /// /// - /// 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 /// /// 8 red bits, 8 green bits, 8 blue bits /// - [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, /// /// 8 red bits, 8 green bits, 8 blue bits, alpha 8 bits /// - [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, /// /// 8 red bits, 8 green bits, 8 blue bits, and 8 ignored bits /// - [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, } ///