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 #ifndef CORE_INCLUDE_FXGE_FX_GE_WIN32_H_ | 7 #ifndef CORE_INCLUDE_FXGE_FX_GE_WIN32_H_ |
8 #define CORE_INCLUDE_FXGE_FX_GE_WIN32_H_ | 8 #define CORE_INCLUDE_FXGE_FX_GE_WIN32_H_ |
9 | 9 |
10 #ifdef _WIN32 | 10 #ifdef _WIN32 |
(...skipping 14 matching lines...) Expand all Loading... |
25 class CFX_WindowsDIB : public CFX_DIBitmap { | 25 class CFX_WindowsDIB : public CFX_DIBitmap { |
26 public: | 26 public: |
27 static CFX_ByteString GetBitmapInfo(const CFX_DIBitmap* pBitmap); | 27 static CFX_ByteString GetBitmapInfo(const CFX_DIBitmap* pBitmap); |
28 | 28 |
29 static CFX_DIBitmap* LoadFromBuf(BITMAPINFO* pbmi, void* pData); | 29 static CFX_DIBitmap* LoadFromBuf(BITMAPINFO* pbmi, void* pData); |
30 | 30 |
31 static HBITMAP GetDDBitmap(const CFX_DIBitmap* pBitmap, HDC hDC); | 31 static HBITMAP GetDDBitmap(const CFX_DIBitmap* pBitmap, HDC hDC); |
32 | 32 |
33 static CFX_DIBitmap* LoadFromDDB(HDC hDC, | 33 static CFX_DIBitmap* LoadFromDDB(HDC hDC, |
34 HBITMAP hBitmap, | 34 HBITMAP hBitmap, |
35 FX_DWORD* pPalette = NULL, | 35 uint32_t* pPalette = NULL, |
36 FX_DWORD size = 256); | 36 uint32_t size = 256); |
37 | 37 |
38 static CFX_DIBitmap* LoadFromFile(const FX_WCHAR* filename); | 38 static CFX_DIBitmap* LoadFromFile(const FX_WCHAR* filename); |
39 | 39 |
40 static CFX_DIBitmap* LoadFromFile(const FX_CHAR* filename) { | 40 static CFX_DIBitmap* LoadFromFile(const FX_CHAR* filename) { |
41 return LoadFromFile(CFX_WideString::FromLocal(filename).c_str()); | 41 return LoadFromFile(CFX_WideString::FromLocal(filename).c_str()); |
42 } | 42 } |
43 | 43 |
44 static CFX_DIBitmap* LoadDIBitmap(WINDIB_Open_Args_ args); | 44 static CFX_DIBitmap* LoadDIBitmap(WINDIB_Open_Args_ args); |
45 | 45 |
46 CFX_WindowsDIB(HDC hDC, int width, int height); | 46 CFX_WindowsDIB(HDC hDC, int width, int height); |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 protected: | 89 protected: |
90 HBITMAP m_hBitmap; | 90 HBITMAP m_hBitmap; |
91 | 91 |
92 HBITMAP m_hOldBitmap; | 92 HBITMAP m_hOldBitmap; |
93 | 93 |
94 HDC m_hDC; | 94 HDC m_hDC; |
95 }; | 95 }; |
96 #endif | 96 #endif |
97 | 97 |
98 #endif // CORE_INCLUDE_FXGE_FX_GE_WIN32_H_ | 98 #endif // CORE_INCLUDE_FXGE_FX_GE_WIN32_H_ |
OLD | NEW |