quick question:
i have a png file w/ transparency and no background (fully
transparent), and i bring it in:
alpha_image = IMG_Load(“filename.png”);
SDL_SetAlpha(alpha_image, SDL_SRCALPHA, 0);
and if i blit that, everything’s fine, but if i do
temp = IMG_Load(“filename.png”);
SDL_SetAlpha(temp, SDL_SRCALPHA, 0);
alpha_image = SDL_DisplayFormat(temp);
and blit that (that being alpha_image), i don’t see anything (the entire
image is a circle, 50% transparent, against nothing (no white, black,
etc.))
… so, any idea how to convert it to the correct display format but not
lose alpha channels … or do i even need to convert it?–
El dt, 02-04-2002 a las 12:26, Christopher Thielen escribi?:
quick question:
i have a png file w/ transparency and no background (fully
transparent), and i bring it in:
alpha_image = IMG_Load("filename.png");
SDL_SetAlpha(alpha_image, SDL_SRCALPHA, 0);
and if i blit that, everything's fine, but if i do
temp = IMG_Load("filename.png");
SDL_SetAlpha(temp, SDL_SRCALPHA, 0);
alpha_image = SDL_DisplayFormat(temp);
use
alpha_image = SDL_DisplayFormatAlpha(temp);
for images with alpha channel
read the documentation
and blit that (that being alpha_image), i don't see anything (the entire
image is a circle, 50% transparent, against nothing (no white, black,
etc.))
... so, any idea how to convert it to the correct display format but not
lose alpha channels ... or do i even need to convert it?--
- Chris
Epiar Administrator/Programmer
http://epiar.sourceforge.net/
_______________________________________________
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl