// Copyright 2018 The PDFium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "testing/utils/bitmap_saver.h" #include <fstream> #include <vector> #include "core/fxcrt/check.h" #include "core/fxcrt/fx_safe_types.h" #include "testing/image_diff/image_diff_png.h" // static void BitmapSaver::WriteBitmapToPng(FPDF_BITMAP bitmap, const std::string& filename) { … } // static void BitmapSaver::WriteBitmapToPng(CFX_DIBitmap* bitmap, const std::string& filename) { … }