Tooltips Day #5 : Special Effect Filter Instead Of Unit Test

22 hours ago
9

Rendering an effect properly on a bitmap in my experience can be a viable replacement for a Unit Test if all you are about is proper output .

We are going to test our font stamping code by creating a special effect that takes the average LUM of a chunk of pixels and maps it to a glyph symbol 0 to 9 .

We will then do an alpha composite stamp of a 1/4 section of the glyph character by mapping the lum to range 0 to 9 and getting ascii code by offsetting by char '0' .

What I thought was going to take 1 to 2 days has become a week 1 task , but If I release software I want to do it right .

Loading comments...