Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
bitmap_saver.h
Go to the documentation of this file.
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
12class CFX_DIBitmap;
13
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_
BC_TYPE
Definition BC_Library.h:25
void BC_Library_Init()
void BC_Library_Destroy()
#define MAYBE_Pdf417
#define MAYBE_Code128B
#define MAYBE_Code128C
#define MAYBE_UPCA
#define MAYBE_Code128
#define MAYBE_CodaBar
#define MAYBE_Code128CLetters
#define MAYBE_QrCode
TEST_F(BarcodeTest, MAYBE_Code39)
#define MAYBE_DataMatrix
#define MAYBE_Ean13
#define MAYBE_Ean8
#define MAYBE_Code39
void TearDown() override
std::string BitmapChecksum()
void SetUp() override
std::unique_ptr< CFX_Barcode > barcode_
CFX_Barcode * barcode() const
void SaveBitmap(const std::string &filename)
void Create(BC_TYPE type)
std::unique_ptr< CFX_RenderDevice > device_
RetainPtr< CFX_DIBitmap > bitmap_
static void WriteBitmapToPng(FPDF_BITMAP bitmap, const std::string &filename)
static void WriteBitmapToPng(CFX_DIBitmap *bitmap, const std::string &filename)