Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Side by Side Diff: public/fpdfview.h

Issue 2526473002: Add FPDF_RenderPageBitmapWithMatrix. (Closed)
Patch Set: rebase, nits Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fpdfsdk/fpdfview_embeddertest.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 // bitmap coordinates. 587 // bitmap coordinates.
588 // start_y - Top pixel position of the display area in bitmap 588 // start_y - Top pixel position of the display area in bitmap
589 // coordinates. 589 // coordinates.
590 // size_x - Horizontal size (in pixels) for displaying the page. 590 // size_x - Horizontal size (in pixels) for displaying the page.
591 // size_y - Vertical size (in pixels) for displaying the page. 591 // size_y - Vertical size (in pixels) for displaying the page.
592 // rotate - Page orientation: 592 // rotate - Page orientation:
593 // 0 (normal) 593 // 0 (normal)
594 // 1 (rotated 90 degrees clockwise) 594 // 1 (rotated 90 degrees clockwise)
595 // 2 (rotated 180 degrees) 595 // 2 (rotated 180 degrees)
596 // 3 (rotated 90 degrees counter-clockwise) 596 // 3 (rotated 90 degrees counter-clockwise)
597 // flags - 0 for normal display, or combination of flags 597 // flags - 0 for normal display, or combination of the Page
598 // defined above. With FPDF_ANNOT flag, it renders all 598 // Rendering flags defined above. With the FPDF_ANNOT
599 // annotations that does not require user-interaction, 599 // flag, it renders all annotations that do not require
600 // which are all annotations except widget and popup 600 // user-interaction, which are all annotations except
601 // annotations. 601 // widget and popup annotations.
602 // Return value: 602 // Return value:
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 the Page
623 // Rendering flags defined above. With the FPDF_ANNOT
624 // flag, it renders all annotations that do not require
625 // user-interaction, which are all annotations except
626 // widget and popup 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
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_
OLDNEW
« no previous file with comments | « fpdfsdk/fpdfview_embeddertest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698