#include "jpeg_tool.h" #include "gio.h" int main(void) { JPEGImage jp; WSGraph vp; int i, j; jp = read_jpeg_file("XX.jpg"); if (jp.gp==NULL) { print_message("fail read XX.jpg!!\n"); exit(1); } vp = JPEGImage2WSGraph(jp); free_JPEGImage(&jp); WSGraph gp = make_WSGraph(vp.xs, vp.ys, 1); int max = 0; int min = vp.gp[0]; for(i=0; i