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_pattern.cpp
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#include "core/fpdfapi/page/cpdf_pattern.h"
8
9#include <utility>
10
11#include "core/fpdfapi/parser/cpdf_dictionary.h"
12#include "third_party/base/check.h"
13
16 const CFX_Matrix& parentMatrix)
19 m_ParentMatrix(parentMatrix) {
20 DCHECK(m_pDocument);
21 DCHECK(m_pPatternObj);
22}
23
24CPDF_Pattern::~CPDF_Pattern() = default;
25
26CPDF_TilingPattern* CPDF_Pattern::AsTilingPattern() {
27 return nullptr;
28}
29
30CPDF_ShadingPattern* CPDF_Pattern::AsShadingPattern() {
31 return nullptr;
32}
33
35 RetainPtr<const CPDF_Dictionary> pDict = pattern_obj()->GetDict();
36 m_Pattern2Form = pDict->GetMatrixFor("Matrix") * m_ParentMatrix;
37}
CFX_Matrix(const CFX_Matrix &other)=default
~CPDF_Pattern() override
void SetPatternToFormMatrix()
virtual CPDF_ShadingPattern * AsShadingPattern()
virtual CPDF_TilingPattern * AsTilingPattern()
CPDF_Pattern(CPDF_Document *pDoc, RetainPtr< CPDF_Object > pObj, const CFX_Matrix &parentMatrix)