标题:如何对运行在arm板上的程序界面进行拷屏?
作者:fanzhichao
日期:2008-09-17 09:38
内容:
如题!
#1 [suraid 09-17 10:37]
读取framebuffer喽
#2 [fanzhichao 09-17 11:23]
我也知道数据是经过fb驱动lcd驱动程序来完成显示的。
我也查到了最终是通过
void QVFbView::refreshDisplay(const QRect &r)
{
if ( animation ) {
if ( r.isEmpty() ) {
animation->appendBlankFrame();
} else {
int l;
QImage img = getBuffer( r, l );
animation->appendFrame(img,QPoint(r.x(),r.y()));
}
}
if ( !r.isNull() )
repaint();
}
来生成要显示在屏幕上的图像
我想知道的是:怎么样把这个QImage抓出来?
#3 [fanzhichao 09-18 12:10]
已经搞定。总结如下:
http://fanzhichao.blog.hexun.com/23221618_d.html