indexed-image

How to convert an Indexed pixel format image to a 32-bit image?

I have an image that I get and attempt to load into a graphics object using Graphics.FromImage(image), however this throws an exception if the image has an indexed pixel format. Is there a way to safely convert an indexed image? Update: Thanks to Joe for the tip to just draw the old image over the new one, instead I was trying to conve...

How do I determine if an indexed mode SDL_Surface has transparency or not?

I've got code I've been working with to load and convert SDL_Surfaces to OpenGL textures, however I've realized that they only work with RGB(A) surfaces. I need to extend the support onto indexed mode images (with or without transparency). Initially, I was looking into ::SDL_SetColorKey(), however it seems to only work with SDL blits. I...