标题:如何将图象数据在屏上画出来?
作者:haox
日期:2006-04-04 12:55
内容:
我是这样做的,
int ret = pixmap.loadFromData((uchar *)buf, len, "BMP",Auto);
lb->setPixmap(&pixmap);
但发现在屏上显示出来的图象左边部分图象跑到右边去了,请问为什么,如何解决啊?
还有参数len是文件大小还是width*height?
#1 [gegenteil 04-04 15:59]
Hi,
I think the problem is the way you read your image into buf. Can you post more code?
PS: len is the length of buf.