View Single Post
Old 04-19-2012, 02:16 PM   #100
jmseight
Zealot
jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'
 
Posts: 130
Karma: 10000
Join Date: Mar 2012
Device: Kindle 3G, Kindle Touch 3G, iRiver Story HD, Sony Reader
Hi,

I was thinking of something like this in the rfb16ToHalftonedFramebuffer4() function.

From:
Code:
			if(c < *mp++) {
				dval |= 0x0F;
			}
To:
Code:
			if(c <= BLK || (c <= WHT && c < *mp++)) {
				dval |= 0x0F;
			}
where BLK and WHT can be read from the command line.

Maybe BLK = 4 and WHT = 11 or something else.

This would allow easy testing instead of changing the dithering table.

I am not sure how to do this in geekmaster's formula...

Thanks,
James

Last edited by jmseight; 04-19-2012 at 02:18 PM.
jmseight is offline   Reply With Quote