Masking

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

Is there a fster way to display a bitmap on the screen without the pixels 
which are the mask color, other than plotting each color individually in a 
loop?

this is the code im using at the moment:

for y = 1 to length(img) do
    for x = 1 to length(img[y]) do
        if img[y][x] != MASK_COLOR then
            pixel(img[y][x], {imgX + x, imgY + y})
        end if
    end if
end for

this is too slow for what i am doing.


thanks in advance

StewartML

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

Search



Quick Links

User menu

Not signed in.

Misc Menu