# \#layout

**URL:** https://forum.commonvisionblox.com/tag/layout/87.md

[Latest](https://forum.commonvisionblox.com/latest.md) · [Categories](https://forum.commonvisionblox.com/categories.md) · [Tags](https://forum.commonvisionblox.com/tags.md)

---

## [BGR detection at runtime](https://forum.commonvisionblox.com/t/bgr-detection-at-runtime/340)

<div class="topic-metadata">

**Author:** [@Tomes](https://forum.commonvisionblox.com/u/Tomes)\
**Replies:** 2\
**Last updated:** [January 16, 2018, 9:53am UTC](https://forum.commonvisionblox.com/t/bgr-detection-at-runtime/340 "2018-01-16T09:53:42Z")

</div>

Hi, In one of the examples, the bytes from an image are copied to a bitmap. The way of copying depends on the pixel format of the image (RGB or BGR). In the example, this is done as follows: #if BGR \*(pDs…
