• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2018 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef TESTING_UTILS_BITMAP_SAVER_H_
6 #define TESTING_UTILS_BITMAP_SAVER_H_
7 
8 #include <string>
9 
10 #include "public/fpdfview.h"
11 
12 class CFX_DIBitmap;
13 
14 class BitmapSaver {
15  public:
16   static void WriteBitmapToPng(FPDF_BITMAP bitmap, const std::string& filename);
17   static void WriteBitmapToPng(CFX_DIBitmap* bitmap,
18                                const std::string& filename);
19 };
20 
21 #endif  // TESTING_UTILS_BITMAP_SAVER_H_
22