It seems you can pass the following imageType values: cc.FMT_PNG, cc.FMT_JPG, cc.FMT_TIFF, cc.FMT_RAWDATA. If the values is different from those, it assumes it may be a PNG or TIFF file buffer.
Sorry, I can’t read Chinese.
If you can’t get it to work, maybe post the exact error message you get, show your code, or maybe try Canvas mode if you’re in WebGL mode.
I haven’t tried using the initWithImageData function directly, but the initWithImageFile function worked fine for me.