Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我必须在 java 中读取 ppm 图像,然后将图像转换为负片。然后 PPM 图像有一个幻数“P6”,然后是一个 #Comment 字符,然后是高度和宽度。最后有255个字符,后面是数据。我想读取标题并验证它是 P3 还是 P6。然后读取图像尺寸,然后使用java将数据转换为图像的负值,请建议我最好的方法
JAI 库提供了帮助。它工作正常