You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.3 KiB
47 lines
1.3 KiB
// Copyright 2018 PDFium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
|
|
|
|
#ifndef XFA_FXFA_CXFA_IMAGERENDERER_H_
|
|
#define XFA_FXFA_CXFA_IMAGERENDERER_H_
|
|
|
|
#include <memory>
|
|
|
|
#include "core/fxcrt/fx_coordinates.h"
|
|
#include "core/fxcrt/retain_ptr.h"
|
|
#include "core/fxcrt/unowned_ptr.h"
|
|
|
|
class CFX_RenderDevice;
|
|
class CFX_DIBBase;
|
|
class CFX_DIBitmap;
|
|
class CFX_ImageTransformer;
|
|
class CFX_ImageRenderer;
|
|
|
|
class CXFA_ImageRenderer {
|
|
public:
|
|
CXFA_ImageRenderer(CFX_RenderDevice* pDevice,
|
|
const RetainPtr<CFX_DIBBase>& pDIBBase,
|
|
const CFX_Matrix* pImage2Device);
|
|
~CXFA_ImageRenderer();
|
|
|
|
bool Start();
|
|
bool Continue();
|
|
|
|
private:
|
|
void CompositeDIBitmap(const RetainPtr<CFX_DIBitmap>& pDIBitmap,
|
|
int left,
|
|
int top);
|
|
|
|
UnownedPtr<CFX_RenderDevice> m_pDevice;
|
|
int m_Status = 0;
|
|
CFX_Matrix m_ImageMatrix;
|
|
RetainPtr<CFX_DIBBase> m_pDIBBase;
|
|
RetainPtr<CFX_DIBitmap> m_pCloneConvert;
|
|
std::unique_ptr<CFX_ImageTransformer> m_pTransformer;
|
|
std::unique_ptr<CFX_ImageRenderer> m_DeviceHandle;
|
|
};
|
|
|
|
#endif // XFA_FXFA_CXFA_IMAGERENDERER_H_
|