7#ifndef CORE_FPDFAPI_RENDER_CPDF_RENDEROPTIONS_H_
8#define CORE_FPDFAPI_RENDER_CPDF_RENDEROPTIONS_H_
12#include "core/fpdfapi/page/cpdf_occontext.h"
13#include "core/fpdfapi/page/cpdf_pageobject.h"
14#include "core/fxcrt/retain_ptr.h"
15#include "core/fxge/dib/fx_dib.h"
58 m_ColorScheme = color_scheme;
75 m_pOCContext = context;
80 bool m_bDrawAnnots =
false;
CFX_FloatRect(const FX_RECT &rect)
FX_RECT GetOuterRect() const
CFX_FloatRect TransformRect(const CFX_FloatRect &rect) const
void Translate(int32_t x, int32_t y)
void Scale(float sx, float sy)
int GetDeviceCaps(int id) const
CPDF_DeviceBuffer(CPDF_RenderContext *pContext, CFX_RenderDevice *pDevice, const FX_RECT &rect, const CPDF_PageObject *pObj, int max_dpi)
const CFX_Matrix & GetMatrix() const
static CFX_Matrix CalculateMatrix(CFX_RenderDevice *pDevice, const FX_RECT &rect, int max_dpi, bool scale)
RetainPtr< CFX_DIBitmap > Initialize()
const CFX_Matrix & GetMatrix() const
CPDF_PageObjectHolder * GetObjectHolder()
Layer(CPDF_PageObjectHolder *pHolder, const CFX_Matrix &matrix)
void AppendLayer(CPDF_PageObjectHolder *pObjectHolder, const CFX_Matrix &mtObject2Device)
CPDF_PageImageCache * GetPageCache() const
const CPDF_Dictionary * GetPageResources() const
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)
CPDF_Document * GetDocument() const
Layer * GetLayer(uint32_t index)
RetainPtr< CPDF_Dictionary > GetMutablePageResources()
size_t CountLayers() const
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)
FX_ARGB TranslateColor(FX_ARGB argb) const
uint32_t GetCacheSizeLimit() const
const Options & GetOptions() const
bool CheckPageObjectVisible(const CPDF_PageObject *pPageObj) const
bool CheckOCGDictVisible(const CPDF_Dictionary *pOC) const
void SetColorScheme(const ColorScheme &color_scheme)
CPDF_RenderOptions(const CPDF_RenderOptions &rhs)
FX_ARGB TranslateObjectStrokeColor(FX_ARGB argb, CPDF_PageObject::Type object_type) const
void SetOCContext(RetainPtr< CPDF_OCContext > context)
bool ColorModeIs(Type mode) const
void SetDrawAnnots(bool draw)
bool GetDrawAnnots() const
FX_ARGB TranslateObjectFillColor(FX_ARGB argb, CPDF_PageObject::Type object_type) const
void SetColorMode(Type mode)
#define FXDC_PIXEL_HEIGHT
FX_ARGB path_stroke_color
FX_ARGB text_stroke_color
Options(const Options &rhs)
Options & operator=(const Options &rhs)
bool bConvertFillToStroke
FX_RECT(const FX_RECT &that)=default