码迷,mamicode.com
首页 > 编程语言 > 详细

使用xxd命令把png图片转成c语言使用的数组

时间:2014-07-16 15:29:12      阅读:260      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   color   使用   for   

#!/bin/bash

image_list=$(ls *.png)

for imag in ${image_list}
do
    if test -f $imag
    then
        xxd -i  ${imag} >> test.h
    fi
done

参考:http://www.cnblogs.com/killkill/archive/2010/06/23/1763785.html

使用xxd命令把png图片转成c语言使用的数组,布布扣,bubuko.com

使用xxd命令把png图片转成c语言使用的数组

标签:style   blog   http   color   使用   for   

原文地址:http://www.cnblogs.com/youngkingwang/p/3848031.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!