Hi All,
Can anyone please explain to me why I have a purple border around an image if I dont use the flag MIPMAPPEDIMAGE?

Ive read that MIPMAPPEDIMAGE requires more memory, so how can I remove this purple border without this flag?
Here is some test code:
And this is the image:

Finally here is the exe/code and image in a zip:
http://therevills.syntaxbomb.com/tests/mipmappedtest.zip
Cheers!
Can anyone please explain to me why I have a purple border around an image if I dont use the flag MIPMAPPEDIMAGE?

Ive read that MIPMAPPEDIMAGE requires more memory, so how can I remove this purple border without this flag?
Here is some test code:
SuperStrict Framework BRL.GLMax2D Import BRL.PNGLoader SetGraphicsDriver GLMax2DDriver() Const Screenwidth% = 320 Const Screenheight% = 240 Graphics Screenwidth, Screenheight,0 AutoMidHandle True Local testfile$ = "gripe.run_right.png" Local width% = 32 Local height% = 32 Local startframe% =0 Local maxframes% = 8 Local mipmappedimg:TImage = LoadAnimImage(testfile , width , height , startframe , maxframes , MIPMAPPEDIMAGE) Local defaultimg:TImage = LoadAnimImage(testfile, width, height, startframe , maxframes, -1) Local filteredimg:TImage = LoadAnimImage(testfile , width , height , startframe , maxframes , FILTEREDIMAGE) Local frame% = 0 Local framedelay% Local x# = Screenwidth / 2 Local y# = Screenheight / 2 - 64 Local start# Local endtime# Local delta# SetClsColor 0,0,255 SetScale 2,2 Repeat delta = (endtime/100) - (start/100) x:+ 1 * delta If x> Screenwidth x = 0 start = MilliSecs() Cls framedelay:+1 If framedelay > 5'25 framedelay = 0 frame:+1 If frame => maxframes frame = 0 End If DrawImage mipmappedimg, x , y , frame DrawImage defaultimg , x , y + 64 , frame DrawImage filteredimg, x, y+128 , frame Flip Endtime = MilliSecs() Until KeyHit(KEY_ESCAPE)
And this is the image:

Finally here is the exe/code and image in a zip:
http://therevills.syntaxbomb.com/tests/mipmappedtest.zip
Cheers!