81 if (m_Matrix
.a == 1.0f && m_Matrix
.d == 1.0f) {
82 m_pDevice->SetDIBits(m_pBitmap, m_Rect.left, m_Rect.top);
84 m_pDevice->StretchDIBits(m_pBitmap, m_Rect.left, m_Rect.top,
85 m_Rect.Width(), m_Rect.Height());
89 auto buffer = pdfium::MakeRetain<CFX_DIBitmap>();
90 if (!m_pDevice->CreateCompatibleBitmap(buffer, m_pBitmap->GetWidth(),
91 m_pBitmap->GetHeight())) {
94 m_pContext->GetBackgroundToBitmap(buffer, m_pObject, m_Matrix);
95 buffer->CompositeBitmap(0, 0, buffer->GetWidth(), buffer->GetHeight(),
96 m_pBitmap, 0, 0, BlendMode::kNormal,
nullptr,
false);
97 m_pDevice->StretchDIBits(std::move(buffer), m_Rect.left, m_Rect.top,
98 m_Rect.Width(), m_Rect.Height());