| OLD | NEW |
| 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 25 matching lines...) Expand all Loading... |
| 36 const std::vector<gfx::Rect>& cutouts); | 36 const std::vector<gfx::Rect>& cutouts); |
| 37 | 37 |
| 38 UI_EXPORT HRGN ConvertPathToHRGN(const gfx::Path& path); | 38 UI_EXPORT HRGN ConvertPathToHRGN(const gfx::Path& path); |
| 39 | 39 |
| 40 // Calculate scale to fit an entire page on DC. | 40 // Calculate scale to fit an entire page on DC. |
| 41 UI_EXPORT double CalculatePageScale(HDC dc, int page_width, int page_height); | 41 UI_EXPORT double CalculatePageScale(HDC dc, int page_width, int page_height); |
| 42 | 42 |
| 43 // Apply scaling to the DC. | 43 // Apply scaling to the DC. |
| 44 UI_EXPORT bool ScaleDC(HDC dc, double scale_factor); | 44 UI_EXPORT bool ScaleDC(HDC dc, double scale_factor); |
| 45 | 45 |
| 46 UI_EXPORT void StretchDIBits(HDC hdc, |
| 47 int dest_x, int dest_y, int dest_w, int dest_h, |
| 48 int src_x, int src_y, int src_w, int src_h, |
| 49 void* pixels, const BITMAPINFO* bitmap_info); |
| 50 |
| 46 } // namespace gfx | 51 } // namespace gfx |
| 47 | 52 |
| 48 #endif // UI_GFX_GDI_UTIL_H_ | 53 #endif // UI_GFX_GDI_UTIL_H_ |
| OLD | NEW |