63 for (
auto& layer : m_Layers) {
64 CFX_RenderDevice::StateRestorer restorer(pDevice);
65 CPDF_RenderStatus status(
this, pDevice);
67 status.SetOptions(*pOptions);
68 status.SetStopObject(pStopObj);
69 status.SetTransparency(layer.GetObjectHolder()->GetTransparency());
70 CFX_Matrix final_matrix = layer.GetMatrix();
72 final_matrix *= *pLastMatrix;
73 status.SetDeviceMatrix(*pLastMatrix);
75 status.Initialize(
nullptr,
nullptr);
76 status.RenderObjectList(layer.GetObjectHolder(), final_matrix);
77 if (status.GetRenderOptions().GetOptions().bLimitedImageCache) {
78 m_pPageCache->CacheOptimization(
79 status.GetRenderOptions().GetCacheSizeLimit());
81 if (status.IsStopped())
Layer(CPDF_PageObjectHolder *pHolder, const CFX_Matrix &matrix)
void AppendLayer(CPDF_PageObjectHolder *pObjectHolder, const CFX_Matrix &mtObject2Device)
CPDF_RenderContext(CPDF_Document *pDoc, RetainPtr< CPDF_Dictionary > pPageResources, CPDF_PageImageCache *pPageCache)
void GetBackgroundToDevice(CFX_RenderDevice *device, const CPDF_PageObject *object, const CPDF_RenderOptions *options, const CFX_Matrix &matrix)
void GetBackgroundToBitmap(RetainPtr< CFX_DIBitmap > bitmap, const CPDF_PageObject *object, const CFX_Matrix &matrix)
void Render(CFX_RenderDevice *pDevice, const CPDF_PageObject *pStopObj, const CPDF_RenderOptions *pOptions, const CFX_Matrix *pLastMatrix)