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
cpdf_windowsrenderdevice.cpp
Go to the documentation of this file.
1// Copyright 2019 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// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7#include "core/fpdfapi/render/cpdf_windowsrenderdevice.h"
8
9#include <sstream>
10
11#include "core/fxcodec/basic/basicmodule.h"
12#include "core/fxcodec/fax/faxmodule.h"
13#include "core/fxcodec/flate/flatemodule.h"
14#include "core/fxcodec/jpeg/jpegmodule.h"
15#include "core/fxge/win32/cfx_psrenderer.h"
16
17namespace {
18
19constexpr EncoderIface kEncoderIface = {
20 BasicModule::A85Encode, FaxModule::FaxEncode, FlateModule::Encode,
21 JpegModule::JpegEncode, BasicModule::RunLengthEncode};
22
23} // namespace
24
25CPDF_WindowsRenderDevice::CPDF_WindowsRenderDevice(
26 HDC hDC,
27 CFX_PSFontTracker* ps_font_tracker)
28 : CFX_WindowsRenderDevice(hDC, ps_font_tracker, &kEncoderIface) {}
29
30CPDF_WindowsRenderDevice::~CPDF_WindowsRenderDevice() = default;
~CPDF_WindowsRenderDevice() override
CPDF_WindowsRenderDevice(HDC hDC, CFX_PSFontTracker *ps_font_tracker)