Returns null on error and the error code through e. Assumes RGB order for color components in buf, if present.
See Implementation
Returns null on error and the error code through e. Assumes RGB order for color components in buf, if present.