Function CreateImageEx(w, h, ByRef buffer, color)

Returns an image created from the buffer provided

The color parameter is a color key value to apply


Related: CreateImage LoadImage