Click here to Skip to main content
15,068,645 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,

I need to convert a bitmap image to hex data.

Please help

thanks,
steve
Posted

1 solution

Take a look at http://netpbm.sourceforge.net/doc/ppm.html[^]

You get Netpbm source at this location http://netpbm.sourceforge.net/[^]

The plain format (P3) has nearly what you need - use the %x printf[^] format specifier

Best regards
Espen Harlinn
   
Comments
Simon Bang Terkildsen 8-Oct-11 11:37am
   
Good suggestion
Espen Harlinn 9-Oct-11 5:33am
   
Thank you, Simon!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900