PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Setting colour key from transparent png?

I have a png with transparency. I want to use this to set the colour key for blitting. Is this even possible?

I know I could use AlphaBltFast, but as I only want transperant/opaque, this seems like overkill.

Ta

Sean
The easiest way is to remove transparency in your PNG. GapiDraw automatically strips all alpha information from the PNG unless you read it to a RGBA surface.
Ok, I got my demo working using a color key. That'll do.