hello all :
consider this code:
Strict
Graphics 640,480,32
Local bobimage:Timage=LoadImage("light.png")
Local logo:Timage=LoadImage("b-max.png")
While Not KeyDown(Key_Escape)
Cls
DrawImage logo,10,10
DrawImage bobimage,MouseX(),MouseY()
Flip
Wend
(using the graphics form the samples dir, this works fine , both images draw ok with masking working fine
now try :
Strict
Local bobimage:Timage=LoadImage("light.png")
Local logo:Timage=LoadImage("b-max.png")
Graphics 640,480,32
While Not KeyDown(Key_Escape)
Cls
DrawImage logo,10,10
DrawImage bobimage,MouseX(),MouseY()
Flip
Wend
and the masking falls to bits all images have a black square border round them, and no matter what combination of blends and load image peramiters i try it still fails to draw the black areas as transparent, am i missing somthing os is the postion of the graphics statement in code that important to the way images are drawn
any help mot greatfuly receved
Rgards Ian
consider this code:
Strict
Graphics 640,480,32
Local bobimage:Timage=LoadImage("light.png")
Local logo:Timage=LoadImage("b-max.png")
While Not KeyDown(Key_Escape)
Cls
DrawImage logo,10,10
DrawImage bobimage,MouseX(),MouseY()
Flip
Wend
(using the graphics form the samples dir, this works fine , both images draw ok with masking working fine
now try :
Strict
Local bobimage:Timage=LoadImage("light.png")
Local logo:Timage=LoadImage("b-max.png")
Graphics 640,480,32
While Not KeyDown(Key_Escape)
Cls
DrawImage logo,10,10
DrawImage bobimage,MouseX(),MouseY()
Flip
Wend
and the masking falls to bits all images have a black square border round them, and no matter what combination of blends and load image peramiters i try it still fails to draw the black areas as transparent, am i missing somthing os is the postion of the graphics statement in code that important to the way images are drawn
any help mot greatfuly receved
Rgards Ian