Chromium Code Reviews| 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 // NOTE: External docs refer to this file as "fpdfview.h", so do not rename | 7 // NOTE: External docs refer to this file as "fpdfview.h", so do not rename |
| 8 // despite lack of consistency with other public files. | 8 // despite lack of consistency with other public files. |
| 9 | 9 |
| 10 #ifndef PUBLIC_FPDFVIEW_H_ | 10 #ifndef PUBLIC_FPDFVIEW_H_ |
| (...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 603 // None. | 603 // None. |
| 604 DLLEXPORT void STDCALL FPDF_RenderPageBitmap(FPDF_BITMAP bitmap, | 604 DLLEXPORT void STDCALL FPDF_RenderPageBitmap(FPDF_BITMAP bitmap, |
| 605 FPDF_PAGE page, | 605 FPDF_PAGE page, |
| 606 int start_x, | 606 int start_x, |
| 607 int start_y, | 607 int start_y, |
| 608 int size_x, | 608 int size_x, |
| 609 int size_y, | 609 int size_y, |
| 610 int rotate, | 610 int rotate, |
| 611 int flags); | 611 int flags); |
| 612 | 612 |
| 613 // Function: FPDF_RenderPageBitmapWithMatrix | |
| 614 // Render contents of a page to a device independent bitmap. | |
| 615 // Parameters: | |
| 616 // bitmap - Handle to the device independent bitmap (as the | |
| 617 // output buffer). The bitmap handle can be created | |
| 618 // by FPDFBitmap_Create. | |
| 619 // page - Handle to the page. Returned by FPDF_LoadPage | |
| 620 // matrix - The transform matrix. | |
| 621 // clipping - The rect to clip to. | |
| 622 // flags - 0 for normal display, or combination of flags | |
| 623 // defined above. With FPDF_ANNOT flag, it renders all | |
| 624 // annotations that does not require user-interaction, | |
|
dsinclair
2016/11/22 14:21:27
nit: do not
Lei Zhang
2016/11/22 23:56:07
Done.
| |
| 625 // which are all annotations except widget and popup | |
| 626 // annotations. | |
| 627 // Return value: | |
| 628 // None. | |
| 629 DLLEXPORT void STDCALL FPDF_RenderPageBitmapWithMatrix(FPDF_BITMAP bitmap, | |
| 630 FPDF_PAGE page, | |
| 631 const FS_MATRIX* matrix, | |
| 632 const FS_RECTF* clipping, | |
| 633 int flags); | |
| 634 | |
| 613 #ifdef _SKIA_SUPPORT_ | 635 #ifdef _SKIA_SUPPORT_ |
| 614 DLLEXPORT FPDF_RECORDER STDCALL FPDF_RenderPageSkp(FPDF_PAGE page, | 636 DLLEXPORT FPDF_RECORDER STDCALL FPDF_RenderPageSkp(FPDF_PAGE page, |
| 615 int size_x, | 637 int size_x, |
| 616 int size_y); | 638 int size_y); |
| 617 #endif | 639 #endif |
| 618 | 640 |
| 619 // Function: FPDF_ClosePage | 641 // Function: FPDF_ClosePage |
| 620 // Close a loaded PDF page. | 642 // Close a loaded PDF page. |
| 621 // Parameters: | 643 // Parameters: |
| 622 // page - Handle to the loaded page. | 644 // page - Handle to the loaded page. |
| (...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 991 // Function: FPDF_BStr_Clear | 1013 // Function: FPDF_BStr_Clear |
| 992 // Helper function to clear a byte string. | 1014 // Helper function to clear a byte string. |
| 993 DLLEXPORT FPDF_RESULT STDCALL FPDF_BStr_Clear(FPDF_BSTR* str); | 1015 DLLEXPORT FPDF_RESULT STDCALL FPDF_BStr_Clear(FPDF_BSTR* str); |
| 994 #endif // PDF_ENABLE_XFA | 1016 #endif // PDF_ENABLE_XFA |
| 995 | 1017 |
| 996 #ifdef __cplusplus | 1018 #ifdef __cplusplus |
| 997 } | 1019 } |
| 998 #endif | 1020 #endif |
| 999 | 1021 |
| 1000 #endif // PUBLIC_FPDFVIEW_H_ | 1022 #endif // PUBLIC_FPDFVIEW_H_ |
| OLD | NEW |