Sinisterly
[Question] Convert Pic To Bytes ? - Printable Version

+- Sinisterly (https://sinister.ly)
+-- Forum: Coding (https://sinister.ly/Forum-Coding)
+--- Forum: C, C++, & Obj-C (https://sinister.ly/Forum-C-C-Obj-C)
+--- Thread: [Question] Convert Pic To Bytes ? (/Thread-Question-Convert-Pic-To-Bytes)



[Question] Convert Pic To Bytes ? - H3ROiN - 05-22-2011

Is It Possible ?
I Googled , btw they must be like this: BYTE Menupic[] = {0x89, 0x50, 0x4E, 0x47 ETC...




RE: [Question] Convert Pic To Bytes ? - Coder-san - 05-22-2011

You can loop through the pixels and use their RGB values.
I did that once in VB6. Output was huge though.


RE: [Question] Convert Pic To Bytes ? - 1llusion - 05-22-2011

http://www.eggheadcafe.com/PrintSearchContent.asp?LINKID=799 possibly? I don't really understand it... Biggrin

http://www.google.cz/#sclient=psy&hl=cs&source=hp&q=Convert+pictures+to+bytes+in+C&aq=f&aqi=&aql=&oq=&pbx=1&bav=on.2,or.r_gc.r_pw.&fp=a3b9f15566042fd