1 // Copyright 2020 The PDFium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 6 7 #ifndef FPDFSDK_CPDFSDK_RENDERPAGE_H_ 8 #define FPDFSDK_CPDFSDK_RENDERPAGE_H_ 9 10 #include "public/fpdfview.h" 11 12 class CFX_Matrix; 13 class CPDFSDK_PauseAdapter; 14 class CPDF_Page; 15 class CPDF_PageRenderContext; 16 struct FX_RECT; 17 18 void CPDFSDK_RenderPage(CPDF_PageRenderContext* pContext, 19 CPDF_Page* pPage, 20 const CFX_Matrix& matrix, 21 const FX_RECT& clipping_rect, 22 int flags, 23 const FPDF_COLORSCHEME* color_scheme); 24 25 // TODO(thestig): Consider giving this a better name, and make its parameters 26 // more similar to those of CPDFSDK_RenderPage(). 27 void CPDFSDK_RenderPageWithContext(CPDF_PageRenderContext* pContext, 28 CPDF_Page* pPage, 29 int start_x, 30 int start_y, 31 int size_x, 32 int size_y, 33 int rotate, 34 int flags, 35 const FPDF_COLORSCHEME* color_scheme, 36 bool need_to_restore, 37 CPDFSDK_PauseAdapter* pause); 38 39 #endif // FPDFSDK_CPDFSDK_RENDERPAGE_H_ 40