BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
in app engine , i found it doesn\'t work, it said that java.awt.image.bufferedImage i
The Google App Engine has a great built-in Images API for image processing tasks. For filesystem emulation on the Google App Engine, have a look at GAE VFS
In short, the way you are trying to accomplish your goal is inconsistent with the design of the App Engine.
so can someone tell me how to implement those functions in GAE?
The simple answer is that it is not possible in GAE.
GAE does not support java.awt images. You have to use GAE Image API to work with images. Reference: https://developers.google.com/appengine/docs/java/images/
This API operates with bytes. The source/destination of your image data can be: post from form, URL connection, DataStore BLOB or BlobStorage.
If the usual built-in packages aren't available, you could try Jimi, which is a pure Java image processing library. It hasn't been updated in the best part of a decade, but it should do the job. No school like the old school.
For some seasons, when you are using external libs already using BufferedImage behind the scenes the GAE's ImageService is useless. I have googled out https://github.com/witwall/appengine-awt but haven't tryed it yet. i believe it is enough to just add the dependency of this lib to the project to make it working.