Re: Masking

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

img_mask = -(img = 0)

and_bits(background, img_mask)
or_bits(background, img)

        Lucius L. Hilley III - Unkmar

----- Original Message ----- 
From: "Stewart MacKenzie-Leigh" <stewartml89 at msn.com>
To: <EUforum at topica.com>
Sent: Sunday, November 09, 2003 07:26 AM
Subject: RE: Masking


>
>
> maybe i could get it to run even faster if i did both tasks at once...
>
> i need to make a copy of the pixels from the location on the screen where
> the new ones are going, before puting my image onto the screen.  this is
so
> that i can put them back when im done displaying the picture.  i only want
> to copy the pixels where the non-transparent pixels of the image are
going,
> the rest i'll fill out with the transparent color.
>
> i should tell you that i am not writing directly to the screen, instead
i'm
> putting all the bitmap information into a sequence the same size as the
> screen, then displaying that on the screen  -  it reduces flicker.
>
> at the moment, it works.  it just runs like shit through a seive.  please
> help :)
>
> thanks in advance.
> _________________
>
> StewartML
>

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

Search



Quick Links

User menu

Not signed in.

Misc Menu