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.
我有一个BufferedImage对象,我对它进行了像素操作(数值)。现在我怎样才能将它保存到一个文件中——最好是 JPEG 文件——而不改变像素值???
BufferedImage
尝试并使用ImageIO.write( image, "some lessless format", new FileOutputStream(...) );.
ImageIO.write( image, "some lessless format", new FileOutputStream(...) );