sounds like a float problem.
this method is very simple: take 9 pixels (3*3) and calculate the average brightness by adding all together and divide trough 9. then assing this brigness to the center pixel. then go to the next pixel (0 to 2,1 to 3,2 to 4...)
if it's an image then maybe it would look like this:
However, there are several methods and this one isn't the best.
BTW. I just meant I don't like those New Times Roman Fonts on Gui elements, it was just a sidenote.
this method is very simple: take 9 pixels (3*3) and calculate the average brightness by adding all together and divide trough 9. then assing this brigness to the center pixel. then go to the next pixel (0 to 2,1 to 3,2 to 4...)
if it's an image then maybe it would look like this:
imgw=imageheight(img)-1 imgh=imagewidth(img)-1 for j=0 to imgw step 3 for i=0 to imgh step 3 for j2=0 to 2 for i2=0 to 2 bri=0 if i>=0 and i<=imgw and j>=0 and j<=imgh oldrgb=rgb rgb=readpixel(i,j) else rgb=oldrgb endif bri=bri+(rgb and $ff) next next bri=bri/9 color bri,bri,bri rect i,j,2,2,1 next next
However, there are several methods and this one isn't the best.
BTW. I just meant I don't like those New Times Roman Fonts on Gui elements, it was just a sidenote.