# Difference between COLOR\_RGBA2RGB and COLOR\_RGBA2BGR

**URL:** <https://forum.opencv.org/t/difference-between-color-rgba2rgb-and-color-rgba2bgr/7289>\
**Category:** C++\
**Created:** [January 26, 2022, 2:07pm UTC](https://forum.opencv.org/t/difference-between-color-rgba2rgb-and-color-rgba2bgr/7289 "2022-01-26T14:07:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![makoe91](https://avatars.discourse-cdn.com/v4/letter/m/f9ae1b/32.png) [@makoe91](https://forum.opencv.org/u/makoe91)\
**Post date:** [January 26, 2022, 2:07pm UTC](https://forum.opencv.org/t/difference-between-color-rgba2rgb-and-color-rgba2bgr/7289/1 "2022-01-26T14:07:06Z")

</div>

Hi there,  
I have an 8BitBGRA and have to remove the alpha channel. There are two possibilites: `COLOR_RGBA2RGB` and `COLOR_RGBA2BGR`. I need to evaluate the converted signal with OpenCV (read the pixel data). So I use it for further processes. I know that OpenCv uses BGR, so I think `COLOR_RGBA2BGR` is the right choice? Or does it not matter?

---

<div class="post-metadata">

**Author:** ![Steve\_in\_Denver](https://avatars.discourse-cdn.com/v4/letter/s/eada6e/32.png) [@Steve\_in\_Denver](https://forum.opencv.org/u/Steve_in_Denver)\
**Post date:** [January 26, 2022, 3:10pm UTC](https://forum.opencv.org/t/difference-between-color-rgba2rgb-and-color-rgba2bgr/7289/2 "2022-01-26T15:10:24Z")

</div>

It depends on what you are doing with the data next. For example if you are going to display it in a GUI you might want it in RGB format, but if you are only going to manipulate it within OpenCV it’s probably best to have it in BGR format.
