Saves SDL surface to memory in one of the formats supported by Imaging defined by Ext.
function SaveSDLSurfaceToMemory(const Ext: string; Data: Pointer; var Size: LongInt; Surface: PSDL_Surface): Boolean;
ImagingSDL (at line 71)
Size must contain size of available memory before the function is called and memory size taken up by the image is returned in this parameter.