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_DeviceBuffer Class Reference

#include <cpdf_devicebuffer.h>

+ Collaboration diagram for CPDF_DeviceBuffer:

Public Member Functions

 CPDF_DeviceBuffer (CPDF_RenderContext *pContext, CFX_RenderDevice *pDevice, const FX_RECT &rect, const CPDF_PageObject *pObj, int max_dpi)
 
 ~CPDF_DeviceBuffer ()
 
RetainPtr< CFX_DIBitmapInitialize ()
 
void OutputToDevice ()
 
const CFX_MatrixGetMatrix () const
 

Static Public Member Functions

static CFX_Matrix CalculateMatrix (CFX_RenderDevice *pDevice, const FX_RECT &rect, int max_dpi, bool scale)
 

Detailed Description

Definition at line 19 of file cpdf_devicebuffer.h.

Constructor & Destructor Documentation

◆ CPDF_DeviceBuffer()

CPDF_DeviceBuffer::CPDF_DeviceBuffer ( CPDF_RenderContext * pContext,
CFX_RenderDevice * pDevice,
const FX_RECT & rect,
const CPDF_PageObject * pObj,
int max_dpi )

Definition at line 55 of file cpdf_devicebuffer.cpp.

References CPDF_DeviceBuffer(), FX_RECT::FX_RECT(), and CalculateMatrix().

Referenced by CPDF_DeviceBuffer(), and CPDF_RenderShading::Draw().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ~CPDF_DeviceBuffer()

CPDF_DeviceBuffer::~CPDF_DeviceBuffer ( )
default

Member Function Documentation

◆ CalculateMatrix()

CFX_Matrix CPDF_DeviceBuffer::CalculateMatrix ( CFX_RenderDevice * pDevice,
const FX_RECT & rect,
int max_dpi,
bool scale )
static

Definition at line 32 of file cpdf_devicebuffer.cpp.

References CFX_RenderDevice::GetDeviceCaps(), FX_RECT::left, CFX_Matrix::Scale(), FX_RECT::top, and CFX_Matrix::Translate().

Referenced by CPDF_DeviceBuffer(), and CPDF_ScaledRenderBuffer::Initialize().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetMatrix()

const CFX_Matrix & CPDF_DeviceBuffer::GetMatrix ( ) const
inline

Definition at line 37 of file cpdf_devicebuffer.h.

Referenced by CPDF_RenderShading::Draw().

+ Here is the caller graph for this function:

◆ Initialize()

RetainPtr< CFX_DIBitmap > CPDF_DeviceBuffer::Initialize ( )
nodiscard

Definition at line 69 of file cpdf_devicebuffer.cpp.

References CFX_FloatRect::CFX_FloatRect(), CFX_FloatRect::GetOuterRect(), and CFX_Matrix::TransformRect().

+ Here is the call graph for this function:

◆ OutputToDevice()

void CPDF_DeviceBuffer::OutputToDevice ( )

Definition at line 79 of file cpdf_devicebuffer.cpp.

References CFX_Matrix::a, and CFX_Matrix::d.

Referenced by CPDF_RenderShading::Draw().

+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: