Re: xor pixel

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Thu, 8 Jan 1998 10:04:37 +1200 "BABOR, JIRI" <J.Babor at GNS.CRI.NZ>
writes:

>Come on, guys,
>
>I asked for a fast xor pixel routine, fast as in machine code or very
>clever, and all I get is a tasteless joke from Michael :.-( , even
>worse from Chris, an ellipse from mjronline, and Lucius tells me I
>can't do it because it would mess up his colors...
>
>Presently I am using the following high level routine, but it's not
>obviously terribly fast:
>
>procedure xorpixel(object c, sequence xy)
>-- pixel(s) xor-ed with background, same syntax as pixel()
>   if sequence(c) then pixel(xor_bits(get_pixel(xy&length(c)),c),xy)
>   else pixel(xor_bits(get_pixel(xy),c),xy) end if
>end procedure
>
>If anyone can do the same *significantly* faster, please let me know.
>Thanks Jiri
>

        How about deleting Windows? Or maybe if the two files were small
enough you could put them into the vidcards memry???

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu