EDGELIB contains a surface oriented graphics engine. This means that the display buffer, and additional resources can be contained in a surface. EDGELIB supports two surface types: a basic surface (RGB) and a surface with an additional alpha channel (RGBA).
The following two samples show a background and foreground image on both an RGB and RGBA surface. The third image shows the PNG image that is used as an RGBA surface.
RGBA surfaces can also be pre-calculated, increasing performance during a blit.
Any surface can also be written to disk as a plain 24 bit Windows bitmap file (BMP) or PNG file for the easy creation of screenshots of your game.