how to create a BMP in cocos2d-x(WIDDOWS)

I’m using the cocos2d-x, VS2012.
If i have the GraphicInfo,Graphic and palet file,
how can i create the BMP in the cocos2d-x using bitmap or other method

Please give me some example or Tutorials,source code would be more better.

Thanks,

@lui2man2chun
To my knowledge, cocos2dx supports these formats:
http://cocos2d-x.org/wiki/Texture_Formats_Supported_by_Cocos2d-x

you try to adjust this function for your needs:
http://cocos2d-x.org/wiki/How_to_Save_a_Screenshot