Color value from GETPIX_P returns unexpected result
|
02-01-2016, 02:06 AM
Post: #1
|
|||
|
|||
Color value from GETPIX_P returns unexpected result
This is the cross post from CW, so is there a bug with the colors stored into GROBs?
Original post: http://codewalr.us/404/31183 I ran into a slight (ok very major) problem. It is going to be very hard to use GROBs to store data in, the values I found increment by eight. so if you store 20 in a pixel it will round to 24 (ok so no big deal just add 8 instead of one and when you need to get a value just divide the GETPIX_P() val by 8) but logically the next step would be 32, right? Well nope, it is 33 ??? I don't know why but it just does that, I have used other values and it isn't too major. 80 turns into 82, that can be fixed by doing this: IP(GETPIX_P(G9,0,0)/8) but if it fluctuates to much it could display the wrong block. I will look and see if I can get around this tomorrow. If this is a bug I hope can solve it :-\ |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 4 Guest(s)