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 "../../../include/fpdfapi/fpdf_module.h" |
| 8 #include "../../../include/fpdfapi/fpdf_pageobj.h" |
| 9 #include "../../../include/fpdfapi/fpdf_render.h" |
| 10 #include "../../../include/fxcodec/fx_codec.h" |
| 11 #include "../../../include/fxcrt/fx_safe_types.h" |
7 #include "../../../include/fxge/fx_ge.h" | 12 #include "../../../include/fxge/fx_ge.h" |
8 #include "../../../include/fxcodec/fx_codec.h" | |
9 #include "../../../include/fpdfapi/fpdf_module.h" | |
10 #include "../../../include/fpdfapi/fpdf_render.h" | |
11 #include "../../../include/fpdfapi/fpdf_pageobj.h" | |
12 #include "../../fxcrt/fx_safe_types.h" | |
13 #include "../fpdf_page/pageint.h" | 13 #include "../fpdf_page/pageint.h" |
14 #include "render_int.h" | 14 #include "render_int.h" |
| 15 |
15 FX_BOOL CPDF_RenderStatus::ProcessImage(CPDF_ImageObject* pImageObj, const CFX_A
ffineMatrix* pObj2Device) | 16 FX_BOOL CPDF_RenderStatus::ProcessImage(CPDF_ImageObject* pImageObj, const CFX_A
ffineMatrix* pObj2Device) |
16 { | 17 { |
17 CPDF_ImageRenderer render; | 18 CPDF_ImageRenderer render; |
18 if (render.Start(this, pImageObj, pObj2Device, m_bStdCS, m_curBlend)) { | 19 if (render.Start(this, pImageObj, pObj2Device, m_bStdCS, m_curBlend)) { |
19 render.Continue(NULL); | 20 render.Continue(NULL); |
20 } | 21 } |
21 return render.m_Result; | 22 return render.m_Result; |
22 } | 23 } |
23 void CPDF_RenderStatus::CompositeDIBitmap(CFX_DIBitmap* pDIBitmap, int left, int
top, FX_ARGB mask_argb, | 24 void CPDF_RenderStatus::CompositeDIBitmap(CFX_DIBitmap* pDIBitmap, int left, int
top, FX_ARGB mask_argb, |
24 int bitmap_alpha, int blend_mode, int Transparency) | 25 int bitmap_alpha, int blend_mode, int Transparency) |
(...skipping 1058 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1083 } | 1084 } |
1084 } else { | 1085 } else { |
1085 FXSYS_memcpy32(dest_buf, src_buf, dest_pitch * height); | 1086 FXSYS_memcpy32(dest_buf, src_buf, dest_pitch * height); |
1086 } | 1087 } |
1087 if (pFunc) { | 1088 if (pFunc) { |
1088 delete pFunc; | 1089 delete pFunc; |
1089 } | 1090 } |
1090 FX_Free(pTransfer); | 1091 FX_Free(pTransfer); |
1091 return pMask; | 1092 return pMask; |
1092 } | 1093 } |
OLD | NEW |