Re: The Common Black Box
- Posted by David Cuny <dcuny at LANSET.COM> Aug 29, 2000
- 422 views
Paul Kerslake wrote: > Well, I'm sure this has been asked a billion times but, how > do I get rid of the black box around BMPs? Converts the bitmap into 'slices', and remove the 'invisible' color. For example, consider the box in this bitmap. The outer border is color 1, the inner border is color 2, and the inner color is color 0 (invisible). 111111 122221 120021 120021 122221 111111 This can be broken into the following: { 0, 0, {1,1,1,1,1,1} } { 0, 1, {1,2,2,2,2,1} } { 0, 2, {1,2} } { 4, 2, {2,1} } { 0, 3, {1,2} } { 4, 3, {2,1} } { 0, 4, {1,2,2,2,2,1} } { 0, 5, {1,1,1,1,1,1} } The first two values indicate where to place the scanline, relative to the origin. The sequence following represents the pixels to draw. -- David Cuny