hxx said:I draw a square,and draw texture in the square,how to set the color I wantn't draw in the texture?
please excuse my english,
if necessary ,could you show a short code?
thanks
LDV said:Do you work With DirecX3D ?
How do you draw the Square?
Where do you want to have the AlphaBlend - Transperency?
LDV
ThePentiumGuy said:Dev.RenderState.AlphaSourceBlend = Blend.SourceAlpha
Dev.RenderState.AlphaDestinationBlend = Blend.InvSourceAlpha
DEv.RenderState.AlphaBlendEnable = True
in your render sub,
and then when loading your texture,
text = new texture(yourbitmap, width,height...,transparent color [see Intellisense])