如何使用C程序将JPEG图像转换为文本或字节数组 [英] How to convert a JPEG image into text or Byte array using C Program
本文介绍了如何使用C程序将JPEG图像转换为文本或字节数组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
any1可以帮我吗plzz
我用Google搜索了它,但找不到任何有用的东西,
帮帮我
感谢
Hi
can any1 help me out to do it plzz
i googled for it but couldn''t find any helpful things,,
help me out
thanks
推荐答案
不清楚您要做什么,这是您要查找的内容: ^ ]
Not too clear on what you are trying to do, is this what you are looking for: Convert jpeg image to Byte array[^]
you can use Windows GDI and GDI+ functions to get bytes from every pixel of a JPEG image.
1.create a bitmap by loading your jpeg image.
2.retrieve bits using getbitmapbits() or getDIBits() windows GDI functions
Link Windows GDI:
http://msdn.microsoft.com/en-us/library/windows/desktop/dd145203%28v=vs.85%29.aspx
这篇关于如何使用C程序将JPEG图像转换为文本或字节数组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文