Greets, how would you create an image with a per-pixel alpha channel?
(that is, not a surface alpha-channel with SDL_SetAlpha.)
I.e. if I’ve already opened an image plus a grey-scale mask image with
SDL_image, then composited them together, how would I alter the format
to accommodate the alpha-components of the pixels?
Any links or source would be appreciated, thanks!
Mark
Greets, how would you create an image with a per-pixel alpha channel?
(that is, not a surface alpha-channel with SDL_SetAlpha.)
I.e. if I’ve already opened an image plus a grey-scale mask image with
SDL_image, then composited them together, how would I alter the format
to accommodate the alpha-components of the pixels?
Any links or source would be appreciated, thanks!
Do you want to load a greyscale image as the alpha channel of another
image? SDL has no such functionality that I’m aware of, I had to write
my own function for this
Lic. Gabriel Gambetta
ARTech - GeneXus Development Team
ggambett at artech.com.uy> ----- Original Message -----
From: Mark Bishop [mailto:sealfin@sealfin.com]
Sent: Lunes, 13 de Octubre de 2003 03:24 p.m.
To: sdl at libsdl.org
Subject: [SDL] Per-pixel alpha-channel, creation of
Greets, how would you create an image with a per-pixel alpha channel?
(that is, not a surface alpha-channel with SDL_SetAlpha.)
I.e. if I’ve already opened an image plus a grey-scale mask image with
SDL_image, then composited them together, how would I alter the format
to accommodate the alpha-components of the pixels?
Any links or source would be appreciated, thanks!
Mark
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl