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.
我能够保存源图像,但无法使用滤色器保存图像: paint.setColorFilter(new ColorMatrixColorFilter(cm));
paint.setColorFilter(new ColorMatrixColorFilter(cm));
如果将此图像转换为位图,则可以轻松保存,但我不知道该怎么做。有没有人给出解决方案?
由于这个新画布由位图支持(第 3 点),因此您在此画布中所做的任何绘图都将成为新位图的一部分(第 2 点)。现在只需从第 2 点开始对该位图调用“压缩”。位图将保存为 jpg/png。