• 8645阅读
  • 2回复

关于bool QImage::loadFromData 这个函数的问题 [复制链接]

上一主题 下一主题
离线haozi
 
只看楼主 倒序阅读 楼主  发表于: 2006-12-29
由参考文档中:
bool QImage::loadFromData ( const uchar * buf, uint len, const char * format = 0 )

If format is specified, the loader attempts to read the image using the specified format. If format is not specified (which is the default), the loader reads a few bytes from the header to guess the file format.

其中format的解释不太明白啊!希望各位帮帮忙,知道的告诉我一下!谢谢~~
离线XChinux

只看该作者 1楼 发表于: 2007-01-07
直接写后缀名, char*类型的.比如 png, bmp, jpg,xpm等
二笔 openSUSE Vim N9 BB10 XChinux@163.com 网易博客 腾讯微博
承接C++/Qt、Qt UI界面、PHP及预算报销系统开发业务
离线haozi
只看该作者 2楼 发表于: 2007-01-08
谢谢~~~
快速回复
限100 字节
 
上一个 下一个