Open GoogleCodeExporter opened 8 years ago
Something is wrong with this: if len less than Width, bitsperrow will be less
than 1. so num_bits will be 0. That's a division by zero...
Original comment by elso.and...@gmail.com
on 21 Mar 2011 at 11:32
Oh yeah you're right ^^;
Sorry about this - fixed.
Original comment by xyfr...@googlemail.com
on 21 Mar 2011 at 4:08
Attachments:
What do you think about this little optimization:
short diffR = (short)(ForeColor.R - BackColor.R);
short diffG = (short)(ForeColor.G - BackColor.G);
short diffB = (short)(ForeColor.B - BackColor.B);
Color fill = Color.FromArgb((int)(BackColor.R + diffR * chunk_done),
(int)(BackColor.G + diffG * chunk_done), (int)(BackColor.B + diffB *
chunk_done));
If i calculated good, this is same, but with less multiplication.
Original comment by elso.and...@gmail.com
on 12 Apr 2011 at 10:50
Original issue reported on code.google.com by
xyfr...@googlemail.com
on 21 Mar 2011 at 3:27Attachments: