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

Side by Side Diff: ui/gfx/gdi_util.h

Issue 641923002: Change PDF scaling factor from double to float. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 6 years, 2 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 | « printing/printed_page.h ('k') | ui/gfx/gdi_util.cc » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium 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 #ifndef UI_GFX_GDI_UTIL_H_ 5 #ifndef UI_GFX_GDI_UTIL_H_
6 #define UI_GFX_GDI_UTIL_H_ 6 #define UI_GFX_GDI_UTIL_H_
7 7
8 #include <vector> 8 #include <vector>
9 #include <windows.h> 9 #include <windows.h>
10 10
(...skipping 22 matching lines...) Expand all
33 void CreateMonochromeBitmapHeader(int width, int height, BITMAPINFOHEADER* hdr); 33 void CreateMonochromeBitmapHeader(int width, int height, BITMAPINFOHEADER* hdr);
34 34
35 // Modify the given hrgn by subtracting the given rectangles. 35 // Modify the given hrgn by subtracting the given rectangles.
36 GFX_EXPORT void SubtractRectanglesFromRegion( 36 GFX_EXPORT void SubtractRectanglesFromRegion(
37 HRGN hrgn, 37 HRGN hrgn,
38 const std::vector<gfx::Rect>& cutouts); 38 const std::vector<gfx::Rect>& cutouts);
39 39
40 GFX_EXPORT HRGN ConvertPathToHRGN(const gfx::Path& path); 40 GFX_EXPORT HRGN ConvertPathToHRGN(const gfx::Path& path);
41 41
42 // Calculate scale to fit an entire page on DC. 42 // Calculate scale to fit an entire page on DC.
43 GFX_EXPORT double CalculatePageScale(HDC dc, int page_width, int page_height); 43 GFX_EXPORT float CalculatePageScale(HDC dc, int page_width, int page_height);
44 44
45 // Apply scaling to the DC. 45 // Apply scaling to the DC.
46 GFX_EXPORT bool ScaleDC(HDC dc, double scale_factor); 46 GFX_EXPORT bool ScaleDC(HDC dc, float scale_factor);
47 47
48 GFX_EXPORT void StretchDIBits(HDC hdc, 48 GFX_EXPORT void StretchDIBits(HDC hdc,
49 int dest_x, int dest_y, int dest_w, int dest_h, 49 int dest_x, int dest_y, int dest_w, int dest_h,
50 int src_x, int src_y, int src_w, int src_h, 50 int src_x, int src_y, int src_w, int src_h,
51 void* pixels, const BITMAPINFO* bitmap_info); 51 void* pixels, const BITMAPINFO* bitmap_info);
52 52
53 } // namespace gfx 53 } // namespace gfx
54 54
55 #endif // UI_GFX_GDI_UTIL_H_ 55 #endif // UI_GFX_GDI_UTIL_H_
OLDNEW
« no previous file with comments | « printing/printed_page.h ('k') | ui/gfx/gdi_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698