7#ifndef CORE_FPDFAPI_RENDER_CPDF_RENDERSHADING_H_
8#define CORE_FPDFAPI_RENDER_CPDF_RENDERSHADING_H_
15class CPDF_ShadingPattern;
23 const CPDF_ShadingPattern* pPattern,
bool Attach(RetainPtr< CFX_DIBitmap > pBitmap)
static CFX_FloatRect GetBBox(pdfium::span< const CFX_PointF > pPoints)
CFX_Matrix operator*(const CFX_Matrix &right) const
CFX_PointF Transform(const CFX_PointF &point) const
CFX_Matrix GetInverse() const
bool DrawShading(const CPDF_ShadingPattern *pPattern, const CFX_Matrix *pMatrix, const FX_RECT &clip_rect, int alpha, bool bAlphaMode)
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
RetainPtr< const CPDF_Array > GetArrayFor(const ByteString &key) const
CFX_Matrix GetMatrixFor(const ByteString &key) const
bool CanReadCoords() const
bool ReadVertex(const CFX_Matrix &pObject2Bitmap, CPDF_MeshVertex *vertex, uint32_t *flag)
bool CanReadColor() const
std::tuple< float, float, float > ReadColor()
const Options & GetOptions() const
bool ColorModeIs(Type mode) const
static void Draw(CFX_RenderDevice *pDevice, CPDF_RenderContext *pContext, const CPDF_PageObject *pCurObj, const CPDF_ShadingPattern *pPattern, const CFX_Matrix &mtMatrix, const FX_RECT &clip_rect, int alpha, const CPDF_RenderOptions &options)
CPDF_RenderShading(const CPDF_RenderShading &)=delete
CPDF_RenderShading & operator=(const CPDF_RenderShading &)=delete
CPDF_RenderShading()=delete
ShadingType GetShadingType() const
bool IsShadingObject() const
@ kTensorProductPatchMeshShading
@ kLatticeFormGouraudTriangleMeshShading
@ kFreeFormGouraudTriangleMeshShading
constexpr FX_ARGB ArgbEncode(uint32_t a, uint32_t r, uint32_t g, uint32_t b)
#define FXARGB_SETDIB(p, argb)
#define FXSYS_IsFloatZero(f)
int FXSYS_roundf(float f)
float FXSYS_sqrt2(float a, float b)
static constexpr CFX_FillRenderOptions WindingOptions()