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

Side by Side Diff: fpdfsdk/include/fpdfview.h

Issue 377353002: Fixes for re-enabling more MSVC level 4 warnings: pdfium/ edition (try 2) (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 6 years, 5 months 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 | « core/include/fxcrt/fx_ucd.h ('k') | fpdfsdk/src/fpdfview.cpp » ('j') | 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 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
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 //» » » red» » » -» A number from 0 to 255, identifying the red intensity. 490 //» » » color» » -» A 32-bit value specifing the col or, in 8888 ARGB format.
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.
495 // Return value: 491 // Return value:
496 // None. 492 // None.
497 // Comments: 493 // Comments:
498 // This function set the color and (optionally) alpha value in specified region of the bitmap. 494 // This function set the color and (optionally) alpha value in specified region of the bitmap.
499 // NOTE: If alpha channel is used, this function does NOT c omposite the background with the source color, 495 // NOTE: If alpha channel is used, this function does NOT c omposite the background with the source color,
500 // instead the background will be replaced by the source co lor and alpha. 496 // instead the background will be replaced by the source co lor and alpha.
501 // If alpha channel is not used, the "alpha" parameter is i gnored. 497 // If alpha channel is not used, the "alpha" parameter is i gnored.
502 // 498 //
503 DLLEXPORT void STDCALL FPDFBitmap_FillRect(FPDF_BITMAP bitmap, int left, int top , int width, int height, 499 DLLEXPORT void STDCALL FPDFBitmap_FillRect(FPDF_BITMAP bitmap, int left, int top , int width, int height, FPDF_DWORD color);
504 » » » » » » » » » int red, int green, int blue, int alpha);
505 500
506 // Function: FPDFBitmap_GetBuffer 501 // Function: FPDFBitmap_GetBuffer
507 // Get data buffer of an FXDIB 502 // Get data buffer of an FXDIB
508 // Parameters: 503 // Parameters:
509 // bitmap - Handle to the bitmap. Returned b y FPDFBitmap_Create function. 504 // bitmap - Handle to the bitmap. Returned b y FPDFBitmap_Create function.
510 // Return value: 505 // Return value:
511 // The pointer to the first byte of the bitmap buffer. 506 // The pointer to the first byte of the bitmap buffer.
512 // Comments: 507 // Comments:
513 // The stride may be more than width * number of bytes per pixel 508 // The stride may be more than width * number of bytes per pixel
514 // Applications can use this function to get the bitmap buf fer pointer, then manipulate any color 509 // 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
569 // Return value: 564 // Return value:
570 // The handle of the dest. 565 // The handle of the dest.
571 // 566 //
572 DLLEXPORT FPDF_DEST STDCALL FPDF_GetNamedDestByName(FPDF_DOCUMENT document,FPDF_ BYTESTRING name); 567 DLLEXPORT FPDF_DEST STDCALL FPDF_GetNamedDestByName(FPDF_DOCUMENT document,FPDF_ BYTESTRING name);
573 568
574 #ifdef __cplusplus 569 #ifdef __cplusplus
575 }; 570 };
576 #endif 571 #endif
577 572
578 #endif // _FPDFVIEW_H_ 573 #endif // _FPDFVIEW_H_
OLDNEW
« no previous file with comments | « core/include/fxcrt/fx_ucd.h ('k') | fpdfsdk/src/fpdfview.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698