Add comments for doxygen.
Fix a bug that rgba order is wrong.