- create-rgb-surface-from* pixels width height depth pitch rmask gmask bmask amaskprocedure
Returns a new unmanaged sdl2:surface with the given properties, using existing pixel data (a pointer, e.g. from surface-pixels-raw). You must call free-surface! when you are done with it.
Signals an exception of kind (exn sdl2) if the surface cannot be created.