nanogui: jpeg show
Subject:
jpeg show
From:
DQ ####@####.####
Date:
17 Feb 2006 03:19:43 +0000
Message-Id: <20060217031828.74361.qmail@web15010.mail.cnb.yahoo.com>
hi,
I find a bug with jpeg show, If define FASTJPEG 0, then draw image would be leak some points or draw some bad points, FASTJPEG =1 is 256 colors ,it's normal. I think and test decode jpeg is right, may be draw pixel occur error, Any patch or suggestion can help me?
I test load jpeg file and show as follow codes:
if (!(ImageWid = GrLoadImageFromFile("./jpgdemo.jpg",0)) )
{
fprintf(stderr, "Can't load image file: %s\n", "./jpgdemo.jpg");
exit(1);
}
GrDrawImageToFit(wid, gc, 0,0, 200,200, ImageWid);
best regards
dq
---------------------------------
雅虎1G免费邮箱百分百防垃圾信
雅虎助手-搜索、杀毒、防骚扰