Re: Wish List Item
- Posted by "Cuny, David at DSS" <David.Cuny at DSS.CA.GOV> Mar 24, 2000
- 417 views
Mike Sabal wrote: > how about xor_bitmap? I considered asking for that, but I have the impression that Robert would be hard-pressed to make a native version of xor_bitmap significantly faster than the 'pure' version. He's mentioned before that he's just using the graphics library that's supplied with the Watcom compiler, and not 'hand-rolling' his own code here. The odds are pretty good that xor_line and xor_poly are part of that library, and he simply decided not to wrap them. So adding these *should* be fairly cheap. On the other hand, I doubt that there's a close match to an xor_bitmap routine. In high level, it looks something like this: for each scanline in the bitmap do pixel( xor( get_pixel( scanline from screen ), scanline from bitmap ) ) end for He's said a couple of times that pixel and get_pixel are about as efficient as they can get. So I doubt that even if he created a 'native' version of xor_bitmap that it would run much faster than the high-level version. Then again, I could be entirely wrong. -- David Cuny