我很难找到一个基于 Java 2D 的图书馆来开发油漆程序。
我发现所有图书馆似乎都是为了:
- animation
- graphing
- games
(这个特定项目主要用于网络通讯和印刷漫画书。 )
我主要感兴趣的是一些东西,这些摘要将几乎太大而无法装入缓冲图像对象的图像输入 IO。
例如Adobes工具可能不会将整个 10MB (压缩的) 图像文件装入内存中 -- -- 一旦减压, 就会有太多的物理内存用于缓存图像( 特别是如果您同时打开十多个图像), 因此在这些应用程序中必须有一个框架来管理磁盘上的文件, 并仅缓冲当前相关的内存区域 。
- I imagine it would at least have an Image subclass that works the same way as BufferedImage while abstracting away the fact that the image is coming and going from the file instead of memory.
- An additional wrapper that allows me to zoom in on a rectangular area or zoom out and buffer up the scaled, visible portion (for display) would be extra nice.
- A layering system with blending modes would be super-sweet, although I expect I ll have to build that myself.