1. Wish List Item
- Posted by "Cuny, David at DSS" <David.Cuny at DSS.CA.GOV> Mar 24, 2000
- 494 views
One of the most sluggish parts in about all the DOS window manager programs I've written has been dragging the window around on the screen. The problem is that the line is an XOR of the pixels - something that's not supported natively. I can live without it, but... Could a native xor_line (and perhaps xor_polygon) be added to the Euphoria library? Thanks! -- David Cuny
2. Re: Wish List Item
- Posted by Mike Sabal <MikeS at NOTATIONS.COM> Mar 24, 2000
- 471 views
> Could a native xor_line (and perhaps xor_polygon) be added to the = Euphoria > library? While we're at it, how about xor_bitmap? That would probably be the most = efficient of them all. Michael J. Sabal
3. Re: Wish List Item
- Posted by "Cuny, David at DSS" <David.Cuny at DSS.CA.GOV> Mar 24, 2000
- 491 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
4. Re: Wish List Item
- Posted by Bernie Ryan <xotron at BUFFNET.NET> Mar 24, 2000
- 462 views
How about in-line assembly then the users could add the features.
5. Re: Wish List Item
- Posted by Robert Craig <rds at ATTCANADA.NET> Mar 24, 2000
- 479 views
- Last edited Mar 25, 2000
David Cuny writes: > Could a native xor_line (and perhaps xor_polygon) be > added to the Euphoria library? That's been on my list for a while. I think Jiri asked for it. I'll bump up the priority. It would also help you to quickly xor a whole bitmap picture. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com
6. Re: Wish List Item
- Posted by David Cuny <dcuny at LANSET.COM> Mar 25, 2000
- 486 views
Robert Craig wrote: > [xor_line's] been on my list for a while. I think > Jiri asked for it. I'll bump up the priority. It would > also help you to quickly xor a whole bitmap picture. Thanks. It didn't occur to me that you could XOR a bitmap simply by XORing the screen and then drawing the image again. D'oh! -- David Cuny