# Why my added tif image(RGB) color only has one single color (green)?

**URL:** <https://mapwindow.discourse.group/t/why-my-added-tif-image-rgb-color-only-has-one-single-color-green/1644>\
**Category:** MapWinGIS\
**Created:** [October 6, 2023, 2:12pm UTC](https://mapwindow.discourse.group/t/why-my-added-tif-image-rgb-color-only-has-one-single-color-green/1644 "2023-10-06T14:12:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yixing](https://avatars.discourse-cdn.com/v4/letter/y/71e660/32.png) [@yixing](https://mapwindow.discourse.group/u/yixing)\
**Post date:** [October 6, 2023, 2:12pm UTC](https://mapwindow.discourse.group/t/why-my-added-tif-image-rgb-color-only-has-one-single-color-green/1644/1 "2023-10-06T14:12:50Z")

</div>

when i add tif image, the color is not same as in the arcmap. why? The code by mapwingis 5.3 is below.

 ![image](https://global.discourse-cdn.com/free1/uploads/mapwindow1/original/1X/6296c91dd41d0b2c4154458944d58f62bc9c12eb.png)  
The color of added image by up code is below.

 ![QQ拼音截图20231006221133](https://global.discourse-cdn.com/free1/uploads/mapwindow1/original/1X/763862eab8b663e0f24b820d115f10e217a05237.jpeg)

And the return value(rrcolorScheme) of .RenderingMode is only read. How to change it to rrRGB  
 ![image](https://global.discourse-cdn.com/free1/uploads/mapwindow1/original/1X/eba3744a70618e32d8300def77bed352b0ff2835.png)

---

<div class="post-metadata">

**Author:** ![yixing](https://avatars.discourse-cdn.com/v4/letter/y/71e660/32.png) [@yixing](https://mapwindow.discourse.group/u/yixing)\
**Post date:** [October 15, 2023, 2:26am UTC](https://mapwindow.discourse.group/t/why-my-added-tif-image-rgb-color-only-has-one-single-color-green/1644/2 "2023-10-15T02:26:30Z")

</div>

I got the answer :  
newImage.AllowGridRendering = tkGridRendering.grNever;  
newImage.UseRgbBandMapping = true;
