PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Very Strange problem.....

Hi all,
Thanks for the help (previous submits).
I have this very strange problem,
follows a code i am using.

Pixel c = lockInfo.pixels[y * nPitch + x] ;
int blueval = c & BLUE_MASK;
lockInfo.pixels[y * nPitch + x] = Color(255,0,0);

When i scale the blue value with PhotoShop i get different values, at the third line the red point comes at the right place. So, that means i am extracting the right x,y i guess.

Any idea?
I made some copies for the bitmap with different bit depth, this hasn't worked out.

Thanks Maoz.
Maoz · 11 Sep 2003, 09:21 UTC — Very
hg
g
I'm not following what the problem is however can I ask what format the file is being saved in (bmp,jpg...) and what is it that your code is trying to do?