summaryrefslogtreecommitdiff
path: root/testing/utils/bitmap_saver.h
blob: 9f931fc323b15db4a690d687fa173a90f417c80c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright 2018 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef TESTING_UTILS_BITMAP_SAVER_H_
#define TESTING_UTILS_BITMAP_SAVER_H_

#include <string>

#include "public/fpdfview.h"

class CFX_DIBitmap;

class BitmapSaver {
 public:
  static void WriteBitmapToPng(FPDF_BITMAP bitmap, const std::string& filename);
  static void WriteBitmapToPng(CFX_DIBitmap* bitmap,
                               const std::string& filename);
};

#endif  // TESTING_UTILS_BITMAP_SAVER_H_