# Can the pixel format be changed when renderinig a BGRA bitmap?

**URL:** https://discourse.vtk.org/t/can-the-pixel-format-be-changed-when-renderinig-a-bgra-bitmap/4682
**Category:** Development
**Created:** [November 18, 2020, 10:14am UTC](https://discourse.vtk.org/t/can-the-pixel-format-be-changed-when-renderinig-a-bgra-bitmap/4682 "2020-11-18T10:14:56Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![learn\_forever](https://discourse.vtk.org/user_avatar/discourse.vtk.org/learn_forever/32/754_2.png) [@learn\_forever](https://discourse.vtk.org/u/learn_forever)
#### Post date: [November 18, 2020, 10:14am UTC](https://discourse.vtk.org/t/can-the-pixel-format-be-changed-when-renderinig-a-bgra-bitmap/4682/1 "2020-11-18T10:14:56Z")

</div>

Hi,

I worked on the .NET platform and had a bitmap in memory with BGRA channel in bitmap pixels. In this case, the bitmap will be wrongly rendered inside VTK. So I need to find a way to convert the bitmap pixels from BGRA to RGBA. Can this be done with a VTK filter directly?

Thanks a lot!
