bmp2csv Convert imagefile(.bmp) to textfile(.csv, .text) How to use compile $ gcc main.c bitmap.c run $ ./a.out InputImageName.bmp OutputTextName.txt Change max image size In main.c line5, 6 #define MAX_WIDTH 128 #define MAX_HEIGHT 128 change here Reference Bitmapファイルを入出力してみる - [物理のかぎしっぽ]