# Dynamically changing image colors

**URL:** <https://forum.inductiveautomation.com/t/dynamically-changing-image-colors/34>\
**Category:** Archived Topics\
**Created:** [March 31, 2006, 2:19pm UTC](https://forum.inductiveautomation.com/t/dynamically-changing-image-colors/34 "2006-03-31T14:19:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeff\_anderson](https://avatars.discourse-cdn.com/v4/letter/j/9de0a6/32.png) [@jeff\_anderson](https://forum.inductiveautomation.com/u/jeff_anderson)\
**Post date:** [March 31, 2006, 2:19pm UTC](https://forum.inductiveautomation.com/t/dynamically-changing-image-colors/34/1 "2006-03-31T14:19:16Z")

</div>

I’d like to show my compressor changing color with the DB value “N\_convey1” as in my other post. 0 = red, 1 = green, 2 = yellow, 3 = red. The compressor is an image. Do I need to swap images or can I tie it into one of the color properties?

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [April 2, 2006, 11:03pm UTC](https://forum.inductiveautomation.com/t/dynamically-changing-image-colors/34/2 "2006-04-02T23:03:54Z")

</div>

Images have a property called a “Tint Color” that is exactly for this purpose.  
When turned on, the tint color does just that to the original image - applies a color tint to it. For the tint color to work well, the original image should be a greyscale image.

You simply turn on tinting on the image, and then bind the tint color to a dynamic property that holds your conveyor status. Just set up the color mapping table to the tint colors of your liking.

You might also want to look into the color replace properties, which can be set up to replace all pixels of one color in an image with another. This is usefull for an image of a machine with an animated “status light” on it.

Hope this helps,

---

<div class="post-metadata">

**Author:** ![buck2825](https://avatars.discourse-cdn.com/v4/letter/b/71e660/32.png) [@buck2825](https://forum.inductiveautomation.com/u/buck2825)\
**Post date:** [November 10, 2010, 6:37pm UTC](https://forum.inductiveautomation.com/t/dynamically-changing-image-colors/34/3 "2010-11-10T18:37:05Z")

</div>

> [@](#):
>
> You simply turn on tinting on the image, and then bind the tint color to a dynamic property that holds your conveyor status. Just set up the color mapping table to the tint colors of your liking.

can you add a little more flesh to this?

thanks

---

<div class="post-metadata">

**Author:** ![nathan](https://avatars.discourse-cdn.com/v4/letter/n/c5a1d2/32.png) [@nathan](https://forum.inductiveautomation.com/u/nathan)\
**Post date:** [November 11, 2010, 12:33am UTC](https://forum.inductiveautomation.com/t/dynamically-changing-image-colors/34/4 "2010-11-11T00:33:21Z")

</div>

[This video](http://inductiveautomation.com/videos/video/8/3) shows how colors work, and the ones below show binding and expressions. Just use the Tint Color property that Carl was referring to. They’re a little bit dated, in that they refer to FactoryPMI instead of Ignition. The concepts and techniques remain current.

[Properties Binding and Expressions Volume 1](http://inductiveautomation.com/videos/video/9/4)  
[Properties Binding and Expressions Volume 2](http://inductiveautomation.com/videos/video/10/4)  
[Properties Binding and Expressions Volume 3](http://inductiveautomation.com/videos/video/11/4)  
[Properties Binding and Expressions Volume 4](http://inductiveautomation.com/videos/video/12/4)  
[Properties Binding and Expressions Volume 5](http://inductiveautomation.com/videos/video/13/4)
