sanity
sanity

Reputation: 35792

How do I access individual pixels in an image within Google App Engine (Java)?

I need to be able to download an image from a remote web server, and then access the RGB colors of individual pixels in the image. Specifically, I need to convert the image to an int[][] where each int is the RGB encoded value of the pixel.

I assume I can grab the image by downloading it using a HttpURLConnection, and then turn it into a com.google.appengine.api.images.Image using ImageServiceFactory.makeImage().

But based on what I've seen of the GAE images API, I can't see any way to access individual pixels in this image, so I can't convert it to an int[][].

How can I do this?

Upvotes: 1

Views: 165

Answers (1)

sanity
sanity

Reputation: 35792

The short answer is - "you can't", however I believe Google has said that they will be supporting this in the future.

Upvotes: 1

Related Questions