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_imageloader.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_PAGE_CPDF_IMAGELOADER_H_
8#define CORE_FPDFAPI_PAGE_CPDF_IMAGELOADER_H_
9
10#include "core/fpdfapi/page/cpdf_colorspace.h"
11#include "core/fxcrt/retain_ptr.h"
12#include "core/fxcrt/unowned_ptr.h"
13
14class CFX_DIBBase;
15class CPDF_Dictionary;
16class CPDF_ImageObject;
18class CPDF_TransferFunc;
20
22 public:
25
26 bool Start(const CPDF_ImageObject* pImage,
27 CPDF_PageImageCache* pPageImageCache,
28 const CPDF_Dictionary* pFormResource,
29 const CPDF_Dictionary* pPageResource,
30 bool bStdCS,
31 CPDF_ColorSpace::Family eFamily,
32 bool bLoadMask,
33 const CFX_Size& max_size_required);
34 bool Continue(PauseIndicatorIface* pPause);
35
37 RetainPtr<CPDF_TransferFunc> pTransferFunc);
38
39 const RetainPtr<CFX_DIBBase>& GetBitmap() const { return m_pBitmap; }
40 const RetainPtr<CFX_DIBBase>& GetMask() const { return m_pMask; }
41 uint32_t MatteColor() const { return m_MatteColor; }
42
43 private:
44 void Finish();
45
46 uint32_t m_MatteColor = 0;
47 bool m_bCached = false;
48 RetainPtr<CFX_DIBBase> m_pBitmap;
49 RetainPtr<CFX_DIBBase> m_pMask;
51 UnownedPtr<const CPDF_ImageObject> m_pImageObject;
52};
53
54#endif // CORE_FPDFAPI_PAGE_CPDF_IMAGELOADER_H_
uint32_t MatteColor() const
RetainPtr< CFX_DIBBase > TranslateImage(RetainPtr< CPDF_TransferFunc > pTransferFunc)
bool Start(const CPDF_ImageObject *pImage, CPDF_PageImageCache *pPageImageCache, const CPDF_Dictionary *pFormResource, const CPDF_Dictionary *pPageResource, bool bStdCS, CPDF_ColorSpace::Family eFamily, bool bLoadMask, const CFX_Size &max_size_required)
const RetainPtr< CFX_DIBBase > & GetBitmap() const
bool Continue(PauseIndicatorIface *pPause)
const RetainPtr< CFX_DIBBase > & GetMask() const