First time here? Check out the FAQ!
answered 2013-05-02 02:35:53 -0600
bear with me for not knowing the java wrappers too well,
but your MatOfInt mPngCompressionRate should hold 2 elements, (not one only) :
MatOfInt mPngCompressionRate
CV_IMWRITE_PNG_COMPRESSION, 9