Android 隐写术
我正在尝试在 Android 上实现隐写术...但是位图在存储时会被压缩,这会改变像素值。还有其他方式存储图像吗?
提前致谢!!
I'm trying to implement steganography on Android...but the bitmap gets compressed when it's stored, and that changes the pixel values. Is there any other way to store the image?
Thanks in advance!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您应该为您的应用程序使用无损压缩方法,因为常见的有损失压缩方法(例如 JPG)会破坏您检查过的水印数据。看一下 位图压缩格式 似乎只有 JPG 和提供 PNG 压缩格式。据我所知 png
是一种无损压缩方法,因此您可以使用它来保存数据。
You should use a lossless compression method for your application since common compression methods with losses such as JPG will ruin your watermark data as you have checked. Taking a look at Bitmap Compression formats it seems that only JPG and PNG compression formats are available. AFAIK png
is a lossless compression method so you could use it to save your data.
尝试将 100 作为压缩质量的最大值,这样您就可以无损地压缩 bmp。
Try passing 100 as maximum value of compress quality, in this way you will compress the bmp loosless.