如何将图像的像素转换为比特流? [英] how to change pixels of an image into bitstream?

查看:324
本文介绍了如何将图像的像素转换为比特流?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个加密的图像(使用wpf在c#中加密),并且正在使用图像控件显示它,然后我必须将加密的像素值转换为0和1s(不存储在sql server中).做到这一点的方法?如果可以的话,请给我建议任何具有源代码的技术...谢谢...如果有任何澄清,请询问...

i have an encrypted image(encrypted in c# using wpf)and i am displaying it using an image control,then i have to transfer the encrypted pixel values into 0s and 1s(not to store in sql server).is there any method to do this?. kindly suggest me any technique with source code if possible... thanks... if any clarifications please ask...

推荐答案

如果您有加密的图像,则它可能已经是比特流了-加密的图像通常是无法显示的,因为大多数密码功能都将二进制流输入并输出二进制流-他们不知道;通常他们对加密数据的内部一无所知/解密.
检查数据-很可能已经是二进制流,只是将其组织为字节而不是位.
If you have an encrypted image, then it is probably already a bit stream - an encrypted image is not normally displayable, as most cryptographic functiuons take a binary stream in and put a binary stream out - they don;''t generally know anything about the internals of the data they are encrypting / decrypting.
Check your data - it most likely is a binary stream already, just organised as bytes rather than bits.


这篇关于如何将图像的像素转换为比特流?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆