OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #include "core/fpdfapi/fpdf_render/render_int.h" | 7 #include "core/fpdfapi/fpdf_render/render_int.h" |
8 | 8 |
9 #include "core/fpdfapi/fpdf_font/cpdf_type3char.h" | 9 #include "core/fpdfapi/fpdf_font/cpdf_type3char.h" |
10 #include "core/fpdfapi/fpdf_font/cpdf_type3font.h" | 10 #include "core/fpdfapi/fpdf_font/cpdf_type3font.h" |
(...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
809 CPDF_TextObject* textobj = pPageObj->m_ClipPath.GetText(i); | 809 CPDF_TextObject* textobj = pPageObj->m_ClipPath.GetText(i); |
810 if (!textobj) { | 810 if (!textobj) { |
811 break; | 811 break; |
812 } | 812 } |
813 CFX_Matrix text_matrix; | 813 CFX_Matrix text_matrix; |
814 textobj->GetTextMatrix(&text_matrix); | 814 textobj->GetTextMatrix(&text_matrix); |
815 CPDF_TextRenderer::DrawTextPath( | 815 CPDF_TextRenderer::DrawTextPath( |
816 &text_device, textobj->m_nChars, textobj->m_pCharCodes, | 816 &text_device, textobj->m_nChars, textobj->m_pCharCodes, |
817 textobj->m_pCharPos, textobj->m_TextState.GetFont(), | 817 textobj->m_pCharPos, textobj->m_TextState.GetFont(), |
818 textobj->m_TextState.GetFontSize(), &text_matrix, &new_matrix, | 818 textobj->m_TextState.GetFontSize(), &text_matrix, &new_matrix, |
819 textobj->m_GraphState, (FX_ARGB)-1, 0, NULL); | 819 textobj->m_GraphState, (FX_ARGB)-1, 0, nullptr, 0); |
820 } | 820 } |
821 } | 821 } |
822 CPDF_RenderStatus bitmap_render; | 822 CPDF_RenderStatus bitmap_render; |
823 bitmap_render.Initialize(m_pContext, &bitmap_device, NULL, m_pStopObj, NULL, | 823 bitmap_render.Initialize(m_pContext, &bitmap_device, NULL, m_pStopObj, NULL, |
824 NULL, &m_Options, 0, m_bDropObjects, pFormResource, | 824 NULL, &m_Options, 0, m_bDropObjects, pFormResource, |
825 TRUE); | 825 TRUE); |
826 bitmap_render.ProcessObjectNoClip(pPageObj, &new_matrix); | 826 bitmap_render.ProcessObjectNoClip(pPageObj, &new_matrix); |
827 m_bStopped = bitmap_render.m_bStopped; | 827 m_bStopped = bitmap_render.m_bStopped; |
828 if (pSMaskDict) { | 828 if (pSMaskDict) { |
829 CFX_Matrix smask_matrix; | 829 CFX_Matrix smask_matrix; |
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1290 m_pContext->GetBackground(m_pBitmapDevice->GetBitmap(), m_pObject, pOptions, | 1290 m_pContext->GetBackground(m_pBitmapDevice->GetBitmap(), m_pObject, pOptions, |
1291 &m_Matrix); | 1291 &m_Matrix); |
1292 return TRUE; | 1292 return TRUE; |
1293 } | 1293 } |
1294 void CPDF_ScaledRenderBuffer::OutputToDevice() { | 1294 void CPDF_ScaledRenderBuffer::OutputToDevice() { |
1295 if (m_pBitmapDevice) { | 1295 if (m_pBitmapDevice) { |
1296 m_pDevice->StretchDIBits(m_pBitmapDevice->GetBitmap(), m_Rect.left, | 1296 m_pDevice->StretchDIBits(m_pBitmapDevice->GetBitmap(), m_Rect.left, |
1297 m_Rect.top, m_Rect.Width(), m_Rect.Height()); | 1297 m_Rect.top, m_Rect.Width(), m_Rect.Height()); |
1298 } | 1298 } |
1299 } | 1299 } |
OLD | NEW |