import java.awt.Toolkit; import java.awt.datatransfer.DataFlavor; import java.awt.datatransfer.Transferable; import java.awt.datatransfer.UnsupportedFlavorException; import java.awt.image.BufferedImage; import java.io.IOException;
透過錯誤經驗,分享科技與遊戲當中的技術,提醒自己及瀏覽此網誌的人,避免踏進相同的陷阱。
本網誌只提供技術概要及合法軟件連結(如有)。
如閣下因下載、安裝、設定資料等操作,導致任何損失,請自行承擔風險及處理,在下不會負責。
2010-05-09
利用 Java 採取系統剪貼板的圖像 (Use Java to capture image from system clipboard)
Labels:
Image
,
Java
,
programming
2010-05-08
利用 Java 採取畫面圖像 (Use Java to capture the system screen image)
import java.awt.AWTException; import java.awt.Rectangle; import java.awt.Robot; import java.awt.Toolkit; import java.awt.image.BufferedImage; import java.io.IOException;
Labels:
Image
,
Java
,
programming
2010-04-27
Windows Live SkyDrive 的批次下載問題 (Batch download files in Windows Live SkyDrive)
即使將文件名稱有規律地上載到 Windows Live 的 SkyDrive 中
要批次下載存放 SkyDrive 中的文件依然不能
Although upload the file and named with regular order to SkyDrive
You still cannot batch download the files
要批次下載存放 SkyDrive 中的文件依然不能
Although upload the file and named with regular order to SkyDrive
You still cannot batch download the files
Labels:
programming
,
SkyDrive
,
Windows Live
2010-04-19
利用 Java 下載 HTTP 網絡上的檔案 (Use Java to download file from HTTP)
import java.io.IOException; import java.net.ConnectException; import java.net.URL; import java.io.InputStream; import java.io.FileOutputStream;
Labels:
Download
,
I/O
,
Java
,
programming
2010-04-13
利用 Java 檢查檔案或目錄的大小 (Use Java to check size of a file or a directory)
import java.io.File
Labels:
I/O
,
Java
,
programming
自訂的 Java File 排序 (Sort the File class in Java)
import java.util.Comparator; import java.io.File;
Labels:
Java
,
programming
,
Sorting
利用 Java 複製與删除檔案及目錄 (Use Java to copy and delete a file or a directory)
import java.io.File; import java.io.IOException; import java.io.FileNotFoundException; import java.io.FileInputStream; import java.io.FileOutputStream; import java.util.Arrays;
Labels:
I/O
,
Java
,
programming
2010-04-12
Java 的 Internationalization 與 Localization (Internationalization and Localization in Java)
在 Test.java 中編寫
Create a file call Test.java and type
Create a file call Test.java and type
Labels:
I18N
,
Java
,
L10N
,
programming
2010-04-07
利用 Java 以不同形狀合併圖像 (Use Java to combine 2 images with a shape of area)
import java.awt.image.BufferedImage; import java.awt.Graphics2D; import java.awt.geom.Ellipse2D;
Labels:
Image
,
Java
,
programming
利用 Java 以不同形狀剪裁圖像 (Use Java to cut a shape of area from an image)
import java.awt.image.BufferedImage; import java.awt.Graphics2D; import java.awt.Color; import java.awt.Polygon; import java.awt.Rectangle; import java.awt.geom.Ellipse2D;
Labels:
Image
,
Java
,
programming
2010-04-06
利用 Java 反轉圖片 (Use Java to reverse an image)
import java.awt.image.BufferedImage;
Labels:
Image
,
Java
,
programming
2010-04-05
利用 Java 旋轉圖片 (Use Java to rotate an image)
import java.awt.image.BufferedImage; import java.awt.Graphics2D; import java.awt.Color; import java.awt.geom.AffineTransform;
Labels:
Image
,
Java
,
programming
利用 Java 將圖像合併 (Use Java to combine 2 images)
import java.awt.image.BufferedImage; import java.awt.Graphics2D;
Labels:
Image
,
Java
,
programming
利用 Java 將圖像轉換成負片效果 (Use Java to edit an image to negative)
import java.awt.image.BufferedImage; import java.awt.Graphics2D;
Labels:
Image
,
Java
,
programming
利用 Java 改變圖像畫布的闊及高 (Use Java to edit the canvas of an image)
import java.awt.image.BufferedImage; import java.awt.Graphics2D; import java.awt.Color;
Labels:
Image
,
Java
,
programming
2010-04-03
利用 Java 為圖像添加邊緣(Use Java to trim an image )
import java.awt.image.BufferedImage; import java.awt.Graphics2D; import java.awt.Color;
Labels:
Image
,
Java
,
programming
利用 Java 將圖像轉換成灰度圖像 (Use Java to edit an image to grayscale)
import java.awt.image.BufferedImage; import java.awt.Graphics2D;
Labels:
Image
,
Java
,
programming
2010-04-02
在 Java 正確複製 BufferedImage 的圖像資料 (Correct way to copy BufferedImage data from Java)
import java.awt.image.BufferedImage
Labels:
Image
,
Java
,
programming
利用 Java 剪裁圖像的指定範圍 (Use Java to cut a rectangle of area from an image)
import java.awt.image.BufferedImage; import java.awt.Graphics2D; import java.awt.Color;
Labels:
Image
,
Java
,
programming
利用 Java 改變圖像的闊及高 (Use Java to edit an image width and height)
import java.awt.image.BufferedImage; import java.awt.Graphics2D;
Labels:
Image
,
Java
,
programming
訂閱:
文章
(
Atom
)