# getPixel() return values

**URL:** <https://forum.kirupa.com/t/getpixel-return-values/249202>\
**Category:** flash\
**Created:** [January 16, 2008, 1:57pm UTC](https://forum.kirupa.com/t/getpixel-return-values/249202 "2008-01-16T13:57:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hatu](https://avatars.discourse-cdn.com/v4/letter/h/f04885/32.png) [@hatu](https://forum.kirupa.com/u/hatu)\
**Post date:** [January 16, 2008, 1:57pm UTC](https://forum.kirupa.com/t/getpixel-return-values/249202/1 "2008-01-16T13:57:02Z")

</div>

I’m using getPixel() for reading a map from a bitmap but it returns somewhat strange and varying values.  
I’m also using the conversion from base-10 to base-16 (toString(16))

Like if I have a area of white #FFFFFF it returns #FEFEFE. This is true for everything with FF value, does AS3 never return FF or could the problem be with pngs?  
I do use palette based pngs and check that the image has the right colors.

The real problems start with other colors,  
when it finds green (#00FF00), it returns FE00. and with blue just FE
