Image Mask Colour Showing Up :(

Blitz3D Forums/Blitz3D Beginners Area/Image Mask Colour Showing Up :(

PoliteProgrammer(Posted 2007) [#1]
Hi all.

I've just loaded an image with a 255, 0, 255 mask.
I now want to create 359 rotated images, so I use:

for i = 1 to 359
imageArray(i) = copyimage(original image)
rotateimage imageArray(i), i
next


My problem is that although the original image is perfect, the mask colour shows up around the edges of each of the rotated images.
Any suggestions? Thanks in advance.

Oh, btw, the image is a bmp, and (if possible) i'd like to keep it that way.

Thanks


Sledge(Posted 2007) [#2]
Pre-rotate the image with a package that doesn't antialias the edges.

EDIT: eg Gimp has an 'Interpolation: None' setting for rotation.


b32(Posted 2007) [#3]
It is caused by the TFormFilter. Use TFormFilter false.


PoliteProgrammer(Posted 2007) [#4]
Oh, I didn't realise that Blitz did that LOL. So obvious.

I just used TFormFilter False and it works perfectly.


Sledge(Posted 2007) [#5]

TFormFilter false


And I didn't realise it did that! :D