xref: /aosp_15_r20/external/pdfium/testing/utils/bitmap_saver.h (revision 3ac0a46f773bac49fa9476ec2b1cf3f8da5ec3a4)
1 // Copyright 2018 The PDFium Authors
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