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 | 7 |
8 #ifndef _FPDFVIEW_H_ | 8 #ifndef _FPDFVIEW_H_ |
9 #define _FPDFVIEW_H_ | 9 #define _FPDFVIEW_H_ |
10 | 10 |
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
480 DLLEXPORT FPDF_BITMAP STDCALL FPDFBitmap_CreateEx(int width, int height, int for
mat, void* first_scan, int stride); | 480 DLLEXPORT FPDF_BITMAP STDCALL FPDFBitmap_CreateEx(int width, int height, int for
mat, void* first_scan, int stride); |
481 | 481 |
482 // Function: FPDFBitmap_FillRect | 482 // Function: FPDFBitmap_FillRect |
483 // Fill a rectangle area in an FXDIB. | 483 // Fill a rectangle area in an FXDIB. |
484 // Parameters: | 484 // Parameters: |
485 // bitmap - The handle to the bitmap. Return
ed by FPDFBitmap_Create function. | 485 // bitmap - The handle to the bitmap. Return
ed by FPDFBitmap_Create function. |
486 // left - The left side position. Starting
from 0 at the left-most pixel. | 486 // left - The left side position. Starting
from 0 at the left-most pixel. |
487 // top - The top side position. S
tarting from 0 at the top-most scan line. | 487 // top - The top side position. S
tarting from 0 at the top-most scan line. |
488 // width - Number of pixels to be filled in
each scan line. | 488 // width - Number of pixels to be filled in
each scan line. |
489 // height - Number of scan lines to be fille
d. | 489 // height - Number of scan lines to be fille
d. |
490 //» » » color» » -» A 32-bit value specifing the col
or, in 8888 ARGB format. | 490 //» » » red» » » -» A number from 0 to 255,
identifying the red intensity. |
| 491 //» » » green» » -» A number from 0 to 255, identify
ing the green intensity. |
| 492 //» » » blue» » -» A number from 0 to 255, identify
ing the blue intensity. |
| 493 //» » » alpha» » -» (Only if the alpha channeled is
used when bitmap created) A number from 0 to 255, |
| 494 //» » » » » » » identifying the alpha va
lue. |
491 // Return value: | 495 // Return value: |
492 // None. | 496 // None. |
493 // Comments: | 497 // Comments: |
494 // This function set the color and (optionally) alpha value
in specified region of the bitmap. | 498 // This function set the color and (optionally) alpha value
in specified region of the bitmap. |
495 // NOTE: If alpha channel is used, this function does NOT c
omposite the background with the source color, | 499 // NOTE: If alpha channel is used, this function does NOT c
omposite the background with the source color, |
496 // instead the background will be replaced by the source co
lor and alpha. | 500 // instead the background will be replaced by the source co
lor and alpha. |
497 // If alpha channel is not used, the "alpha" parameter is i
gnored. | 501 // If alpha channel is not used, the "alpha" parameter is i
gnored. |
498 // | 502 // |
499 DLLEXPORT void STDCALL FPDFBitmap_FillRect(FPDF_BITMAP bitmap, int left, int top
, int width, int height, FPDF_DWORD color); | 503 DLLEXPORT void STDCALL FPDFBitmap_FillRect(FPDF_BITMAP bitmap, int left, int top
, int width, int height, |
| 504 » » » » » » » » » int red,
int green, int blue, int alpha); |
500 | 505 |
501 // Function: FPDFBitmap_GetBuffer | 506 // Function: FPDFBitmap_GetBuffer |
502 // Get data buffer of an FXDIB | 507 // Get data buffer of an FXDIB |
503 // Parameters: | 508 // Parameters: |
504 // bitmap - Handle to the bitmap. Returned b
y FPDFBitmap_Create function. | 509 // bitmap - Handle to the bitmap. Returned b
y FPDFBitmap_Create function. |
505 // Return value: | 510 // Return value: |
506 // The pointer to the first byte of the bitmap buffer. | 511 // The pointer to the first byte of the bitmap buffer. |
507 // Comments: | 512 // Comments: |
508 // The stride may be more than width * number of bytes per
pixel | 513 // The stride may be more than width * number of bytes per
pixel |
509 // Applications can use this function to get the bitmap buf
fer pointer, then manipulate any color | 514 // Applications can use this function to get the bitmap buf
fer pointer, then manipulate any color |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
564 // Return value: | 569 // Return value: |
565 // The handle of the dest. | 570 // The handle of the dest. |
566 // | 571 // |
567 DLLEXPORT FPDF_DEST STDCALL FPDF_GetNamedDestByName(FPDF_DOCUMENT document,FPDF_
BYTESTRING name); | 572 DLLEXPORT FPDF_DEST STDCALL FPDF_GetNamedDestByName(FPDF_DOCUMENT document,FPDF_
BYTESTRING name); |
568 | 573 |
569 #ifdef __cplusplus | 574 #ifdef __cplusplus |
570 }; | 575 }; |
571 #endif | 576 #endif |
572 | 577 |
573 #endif // _FPDFVIEW_H_ | 578 #endif // _FPDFVIEW_H_ |
OLD | NEW |