Is it possible to display a png file with a transparent background?
I tried the DisplayTransparentSprite but it doesn't work with a 'transparent color'.
Do I have to paint the background of the png with a solid color?
thanks!
Display sprites with transparent background
Re: Display sprites with transparent background
Yes, or you can do it using 3d sprites using a 32-bit PNG (with alpha) using something like:yabune wrote:Do I have to paint the background of the png with a solid color
Code: Select all
spriteNumber = LoadSprite(#PB_Any, PNGFilename, #PB_Sprite_Texture | #PB_Sprite_AlphaBlending)
sprite3DNumber = CreateSprite3D(#PB_Any, spriteNumber)-
dracflamloc
- Addict

- Posts: 1648
- Joined: Mon Sep 20, 2004 3:52 pm
- Contact:

