Hi Everyone,
I want to generate my own image in GAE from my own data, but I don't
know what the format of the image data should be. Can I just make it
24bit RGB?
The little test below has an illegal argument exception, and the
javadoc for getFormat says that occurs when the "image data is
invalid".
What should the format of the image data be?
Thanks.
--------------------
byte[] imageData = new byte[200];
for (int i=0; i<200; i++){
if (i<100) imageData[i]=0;
else imageData[i] = (byte) 255;
}
ImagesService imagesService =
ImagesServiceFactory.getImagesService();
Image image = ImagesServiceFactory.makeImage(imageData);
Image.Format format = image.getFormat();
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.