2013-06-20 17 views
6

私の通常のJ2EEアプリケーションでの作業例:私はGAEで達成したいGAEのImageIOクラスの代わりに?

// decode the image 
    InputStream inputStream = new File("/images/test.png"); 
    BufferedImage barCodeBufferedImage = ImageIO.read(inputStream); 
    if (barCodeBufferedImage != null) { 
     LuminanceSource source = new BufferedImageLuminanceSource(barCodeBufferedImage); 
     BinaryBitmap bitmap = new BinaryBitmap(new HybridBinarizer(source)); 
     Result results = new MultiFormatReader().decode(bitmap); 
     //System.out.println("Decoded barcode image :: "+results.getText()); 
     return results.getText(); 
    } 

同じ。しかしImageIOクラスとBufferedImageクラスはブロックされます。 誰でも私にGAEのImageIOクラスの代替案を教えてもらえますか?

+0

[Googleのappengineで画像URLを読むにはどうすればいいですか](https://stackoverflow.com/questions/6856552/how-to-read-a-image-url-in-google-appengine- using-java) – Suma

答えて

1

Google App Engineには限定されたImage APIセットがあり、そのドキュメントはhereです。

基本的な操作には、トリミング、回転、反転、サイズ変更、および色の操作が含まれます。

静的makeImageメソッドは、バイト配列からImageを構築します。

関連する問題