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_rendershading.h
Go to the documentation of this file.
1// Copyright 2019 The PDFium Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7#ifndef CORE_FPDFAPI_RENDER_CPDF_RENDERSHADING_H_
8#define CORE_FPDFAPI_RENDER_CPDF_RENDERSHADING_H_
9
10class CFX_Matrix;
12class CPDF_PageObject;
15class CPDF_ShadingPattern;
16struct FX_RECT;
17
19 public:
20 static void Draw(CFX_RenderDevice* pDevice,
21 CPDF_RenderContext* pContext,
22 const CPDF_PageObject* pCurObj,
23 const CPDF_ShadingPattern* pPattern,
24 const CFX_Matrix& mtMatrix,
25 const FX_RECT& clip_rect,
26 int alpha,
27 const CPDF_RenderOptions& options);
28
32};
33
34#endif // CORE_FPDFAPI_RENDER_CPDF_RENDERSHADING_H_
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
CFX_PointF ReadCoords()
bool CanReadCoords() const
bool CanReadFlag() 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
@ kRadialShading
@ kAxialShading
@ kInvalidShading
@ kCoonsPatchMeshShading
@ kMaxShading
@ kTensorProductPatchMeshShading
@ kLatticeFormGouraudTriangleMeshShading
@ kFreeFormGouraudTriangleMeshShading
@ kFunctionBasedShading
constexpr FX_ARGB ArgbEncode(uint32_t a, uint32_t r, uint32_t g, uint32_t b)
Definition fx_dib.h:118
#define FXARGB_SETDIB(p, argb)
Definition fx_dib.h:137
#define FXSYS_IsFloatZero(f)
Definition fx_system.h:35
int FXSYS_roundf(float f)
Definition fx_system.cpp:92
float FXSYS_sqrt2(float a, float b)
#define FXDC_RENDER_CAPS
#define FXRC_SHADING
static constexpr CFX_FillRenderOptions WindingOptions()