The method encode(String, BarcodeFormat, int, int, Map<EncodeHintType,?>) from the type MultiFormatWriter refers to the missing type BitMatrix這是什么意思
2016-08-06
The method writeToPath(BitMatrix, String, Path) from the type MatrixToImageWriter refers to the missing type BitMatrix這是什么意思
2016-08-06
最贊回答 / 不應有的淡定
不是編碼的問題,還是生成的圖片有問題,大家看那個雙重for循環gs.fillRect方法,大家如果i在外層循環,j在內層循環(個人習慣),應該gs.fillRect(i*3+pixoff,j*3+pixoff, 3, 3);,而不是gs.fillRect(j*3+pixoff,i*3+pixoff, 3, 3);j和i的位置問題,我生成的圖片掃描出來www.xianlaiwan.cn,但是解析確實一串數字,發現i和j寫反了
2016-08-06
已采納回答 / Cirunger
優先考慮js方式去制作 但是js畢竟是比較弱的編程語言? 功能不夠強大? 在制作復雜的二維碼的時候可能無法實現? 當需要制作復雜的二維碼的時候可以考慮轉到后臺去實現。例如中間嵌圖?? 變形等。? 畢竟java有強大的繪圖api 想怎么搞就怎么搞?
2016-08-03