本文共 1028 字,大约阅读时间需要 3 分钟。
## 流程分析
<img src="a.jpg">
## 图像绘制分析
ImageFrame::setPixmap(const QPixmap & pixmap={...})ImageDecoderQt::internalHandleCurrentImage(unsigned int frameIndex=0)ImageDecoderQt::internalReadImage(unsigned int frameIndex=0)ImageDecoderQt::frameBufferAtIndex(unsigned int index=0)ImageSource::createFrameAtIndex(unsigned int index=0)BitmapImage::cacheFrame(unsigned int index=0)BitmapImage::frameAtIndex(unsigned int index=0)BitmapImage::nativeImageForCurrentFrame()BitmapImage::draw(WebCore::GraphicsContext * ctxt=0x002dc640, const WebCore::FloatRect & dst={...)GraphicsContext::drawImage()GraphicsContext::drawImage()GraphicsContext::drawImage(WebCore::Image * image, WebCore::ColorSpace styleColorSpace)RenderImage::paintIntoRect(WebCore::GraphicsContext * context, const WebCore::IntRect & rect)RenderImage::paintReplaced(WebCore::PaintInfo & paintInfo={...})//默认margin:8,8RenderReplaced::paint(WebCore::PaintInfo & paintInfo,)RenderImage::paint(WebCore::PaintInfo & paintInfo)//绘制图像InlineBox::paint(PaintInfo & paintInfo) //单行元素绘制
转载地址:http://efvbi.baihongyu.com/