# Image Pixel Colour values

**URL:** <https://mapwindow.discourse.group/t/image-pixel-colour-values/390>\
**Category:** MapWinGIS\
**Created:** [December 19, 2019, 1:06pm UTC](https://mapwindow.discourse.group/t/image-pixel-colour-values/390 "2019-12-19T13:06:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pronobeshm](https://avatars.discourse-cdn.com/v4/letter/p/f17d59/32.png) [@pronobeshm](https://mapwindow.discourse.group/u/pronobeshm)\
**Post date:** [December 19, 2019, 1:06pm UTC](https://mapwindow.discourse.group/t/image-pixel-colour-values/390/1 "2019-12-19T13:06:59Z")

</div>

How can I get the HSV value for each pixel from an Image in Mapwindow?

---

<div class="post-metadata">

**Author:** ![pmeems](https://yyz2.discourse-cdn.com/free1/user_avatar/mapwindow.discourse.group/pmeems/32/9_2.png) [@pmeems](https://mapwindow.discourse.group/u/pmeems)\
**Post date:** [December 19, 2019, 3:15pm UTC](https://mapwindow.discourse.group/t/image-pixel-colour-values/390/2 "2019-12-19T15:15:25Z")

</div>

What kind of image is it?  
You can load it as a grid and read for each pixel the 3 RGB bands.

---

<div class="post-metadata">

**Author:** ![pronobeshm](https://avatars.discourse-cdn.com/v4/letter/p/f17d59/32.png) [@pronobeshm](https://mapwindow.discourse.group/u/pronobeshm)\
**Post date:** [December 19, 2019, 4:56pm UTC](https://mapwindow.discourse.group/t/image-pixel-colour-values/390/3 "2019-12-19T16:56:16Z")

</div>

Thanks Paul for your quick response , is there any such example available?

Regards,

Pronobesh Mukherjee

---

<div class="post-metadata">

**Author:** ![pronobeshm](https://avatars.discourse-cdn.com/v4/letter/p/f17d59/32.png) [@pronobeshm](https://mapwindow.discourse.group/u/pronobeshm)\
**Post date:** [December 20, 2019, 7:29am UTC](https://mapwindow.discourse.group/t/image-pixel-colour-values/390/4 "2019-12-20T07:29:44Z")

</div>

Hello Paul,  
I am still not able to retrieve 3 RGB bands from Grid. I am quit new on this. Requesting you, if you please post some code block, it will help me a lot.

Regards,  
Pronobesh Mukherjee

---

<div class="post-metadata">

**Author:** ![pronobeshm](https://avatars.discourse-cdn.com/v4/letter/p/f17d59/32.png) [@pronobeshm](https://mapwindow.discourse.group/u/pronobeshm)\
**Post date:** [December 24, 2019, 7:48am UTC](https://mapwindow.discourse.group/t/image-pixel-colour-values/390/5 "2019-12-24T07:48:34Z")

</div>

Hello All,  
I was written below code to pick the colour from the image for every pixels, but unfortunately I am getting (0,0,0) RGB value for all the pixels.  
Color myArgbColor = CommonFunctions.UIntToColor(myImage.ValueWithAlpha[i, j]);

Here i = pixel height and j = pixel width;

Looking for your help to get the actual RGB values from the pixels.

Regards,  
Pronobesh Mukherjee

---

<div class="post-metadata">

**Author:** ![pmeems](https://yyz2.discourse-cdn.com/free1/user_avatar/mapwindow.discourse.group/pmeems/32/9_2.png) [@pmeems](https://mapwindow.discourse.group/u/pmeems)\
**Post date:** [January 5, 2022, 3:08pm UTC](https://mapwindow.discourse.group/t/image-pixel-colour-values/390/6 "2022-01-05T15:08:56Z")

</div>

Closed on January 5, 2022, 3:08pm UTC


