# Swap RGB Image to .net IntPtr bgr

**URL:** <https://forum.commonvisionblox.com/t/swap-rgb-image-to-net-intptr-bgr/1135>\
**Category:** Programming Questions\
**Created:** [May 12, 2020, 12:00pm UTC](https://forum.commonvisionblox.com/t/swap-rgb-image-to-net-intptr-bgr/1135 "2020-05-12T12:00:07Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![parsd](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/parsd/32/7_2.png) [@parsd](https://forum.commonvisionblox.com/u/parsd)\
**Post date:** [May 13, 2020, 10:37am UTC](https://forum.commonvisionblox.com/t/swap-rgb-image-to-net-intptr-bgr/1135/8 "2020-05-13T10:37:01Z")

</div>

And if you need this for OpenCV interop which uses BGR memory layout by default and has no logical channel association (channel 0 just refers to the first in memory), you can have a look at this post which does the conversion, although always copying:

[https://forum.commonvisionblox.com/t/lib-bridge-cvb-image-to-emgu-mat/962/2?u=parsd](https://forum.commonvisionblox.com/t/lib-bridge-cvb-image-to-emgu-mat/962/2)

---

_[View the full topic](https://forum.commonvisionblox.com/t/swap-rgb-image-to-net-intptr-bgr/1135)._
