作者shiengchyi (我是聖棋請多指教)
站內java
標題Re: [問題] 如何把.bmp檔讀取後存成array
時間Sun Oct 21 14:48:47 2007
※ 引述《H45 (!H45)》之銘言:
: 把以下東西做排列組合:
: ImageIO.read(FILE);
: BufferedImage.getRGB(x, y);
: BufferedImage.setRGB(x, y, RGB);
先感謝大大,讀檔並且做設定的部分已經瞭解了...
: ImageIO.write(BufferedImage, Format, File);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
這個跟API上面的資料不一樣...>"<
API上寫的是 write (RenderedImage, FormatName, File)
^^^^^^^^^^^^^ <-另一個很玄的東西~"~
是interface...
還有,API上面解釋FormatName--a String containg the informal name of the format.
我....看不懂~T^T
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.90.113
推 H45:RenderedImage 被 BufferedImage 實作 10/21 15:07
→ H45:FormatName 放 "bmp" 試試看 10/21 15:08
推 PsMonkey:PNG 萬能... XD 10/21 19:51