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_scaledrenderbuffer.h
Go to the documentation of this file.
1// Copyright 2016 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#ifndef CORE_FPDFAPI_RENDER_CPDF_SCALEDRENDERBUFFER_H_
8#define CORE_FPDFAPI_RENDER_CPDF_SCALEDRENDERBUFFER_H_
9
10#include <memory>
11
12#include "core/fxcrt/fx_coordinates.h"
13#include "core/fxcrt/unowned_ptr.h"
14
15class CFX_DefaultRenderDevice;
17class CPDF_PageObject;
20
22 public:
25
26 bool Initialize(CPDF_RenderContext* pContext,
27 const CPDF_PageObject* pObj,
28 const CPDF_RenderOptions& options,
29 int max_dpi);
30
31 CFX_DefaultRenderDevice* GetDevice();
32 const CFX_Matrix& GetMatrix() const { return matrix_; }
33 void OutputToDevice();
34
35 private:
36 UnownedPtr<CFX_RenderDevice> const device_;
37 std::unique_ptr<CFX_DefaultRenderDevice> const bitmap_device_;
38 const FX_RECT rect_;
39 CFX_Matrix matrix_;
40};
41
42#endif // CORE_FPDFAPI_RENDER_CPDF_SCALEDRENDERBUFFER_H_
CFX_FloatRect(const FX_RECT &rect)
FX_RECT GetOuterRect() const
CFX_FloatRect TransformRect(const CFX_FloatRect &rect) const
void Scale(float sx, float sy)
CPDF_ScaledRenderBuffer(CFX_RenderDevice *device, const FX_RECT &rect)
CFX_DefaultRenderDevice * GetDevice()
bool Initialize(CPDF_RenderContext *pContext, const CPDF_PageObject *pObj, const CPDF_RenderOptions &options, int max_dpi)
const CFX_Matrix & GetMatrix() const
FXDIB_Format
Definition fx_dib.h:21
#define FXDC_RENDER_CAPS
#define FXRC_ALPHA_OUTPUT
int Height() const
int Width() const
FX_RECT(const FX_RECT &that)=default