简体   繁体   English

我应该在GAE中使用哪些类进行基本位图操作?

[英]What class(es) should I use for basic bitmap operations in GAE?

I have to get some code running on the GAE and it does some very basic bitmap manipulation. 我必须在GAE上运行一些代码,并且它必须执行一些非常基本的位图操作。 What I fundamentally need to do is: 我从根本上需要做的是:

  1. Convert a bitmap from one format to another (usually to PNG). 将位图从一种格式转换为另一种格式(通常转换为PNG)。
  2. Get the metadata of an image: size in pixels, DPI, & bitmap format. 获取图像的元数据:像素大小,DPI和位图格式。
  3. Resize an image. 调整图像大小。
  4. Walk the pixels in a bitmap to read and/or set them (this can be slow - rarely used). 在位图中移动像素以读取和/或设置它们(这可能很慢-很少使用)。

Also, it would be terrific if there's a class that will convert metafiles to a bitmap? 另外,如果有一个将图元文件转换为位图的类,那将是非常棒的事情?

thanks - dave 谢谢-戴夫

For basic image manipulation (resize, crop, rotate etc.), you can use the Images API and in particular, the interface com.google.appengine.api.images.Image . 对于基本的图像处理(调整大小,裁剪,旋转等),可以使用Images API ,尤其是使用com.google.appengine.api.images.Image接口。

The API seems to support many of the requirements that you mention. 该API似乎支持您提到的许多要求。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM