• 7209阅读
  • 1回复

如何将图象数据在屏上画出来? [复制链接]

上一主题 下一主题
离线haox
 
只看楼主 倒序阅读 楼主  发表于: 2006-04-04
我是这样做的,
int ret = pixmap.loadFromData((uchar *)buf, len, "BMP", Auto);
lb->setPixmap(&pixmap);
但发现在屏上显示出来的图象左边部分图象跑到右边去了,请问为什么,如何解决啊?
还有参数len是文件大小还是width*height?
[ 此贴被XChinux在2006-04-04 13:00重新编辑 ]
离线gegenteil

只看该作者 1楼 发表于: 2006-04-04
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.
快速回复
限100 字节
 
上一个 下一个