Home
last modified time | relevance | path

Searched refs:pPathObj (Results 1 – 8 of 8) sorted by relevance

/external/pdfium/fpdfsdk/
Dfpdfeditpath.cpp40 auto pPathObj = pdfium::MakeUnique<CPDF_PathObject>(); in FPDFPageObj_CreateNewPath() local
41 pPathObj->m_Path.AppendPoint(CFX_PointF(x, y), FXPT_TYPE::MoveTo, false); in FPDFPageObj_CreateNewPath()
42 pPathObj->DefaultStates(); in FPDFPageObj_CreateNewPath()
43 return pPathObj.release(); // Caller takes ownership. in FPDFPageObj_CreateNewPath()
50 auto pPathObj = pdfium::MakeUnique<CPDF_PathObject>(); in FPDFPageObj_CreateNewRect() local
51 pPathObj->m_Path.AppendRect(x, y, x + w, y + h); in FPDFPageObj_CreateNewRect()
52 pPathObj->DefaultStates(); in FPDFPageObj_CreateNewRect()
53 return pPathObj.release(); // Caller takes ownership. in FPDFPageObj_CreateNewRect()
62 auto* pPathObj = CPDFPathObjectFromFPDFPageObject(path); in FPDFPath_SetStrokeColor() local
63 if (!pPathObj || R > 255 || G > 255 || B > 255 || A > 255) in FPDFPath_SetStrokeColor()
[all …]
Dfpdfeditpage.cpp70 CPDF_PathObject* pPathObj = pPageObj->AsPath(); in CalcBoundingBox() local
71 pPathObj->CalcBoundingBox(); in CalcBoundingBox()
/external/pdfium/core/fpdfapi/edit/
Dcpdf_pagecontentgenerator_unittest.cpp34 CPDF_PathObject* pPathObj) { in TestProcessPath() argument
35 pGen->ProcessPath(buf, pPathObj); in TestProcessPath()
52 auto pPathObj = pdfium::MakeUnique<CPDF_PathObject>(); in TEST_F() local
53 pPathObj->m_Path.AppendRect(10, 5, 13, 30); in TEST_F()
54 pPathObj->m_FillType = FXFILL_ALTERNATE; in TEST_F()
55 pPathObj->m_bStroke = true; in TEST_F()
60 TestProcessPath(&generator, &buf, pPathObj.get()); in TEST_F()
63 pPathObj = pdfium::MakeUnique<CPDF_PathObject>(); in TEST_F()
64 pPathObj->m_Path.AppendPoint(CFX_PointF(0, 0), FXPT_TYPE::MoveTo, false); in TEST_F()
65 pPathObj->m_Path.AppendPoint(CFX_PointF(5.2f, 0), FXPT_TYPE::LineTo, false); in TEST_F()
[all …]
Dcpdf_pagecontentgenerator.cpp161 else if (CPDF_PathObject* pPathObj = pPageObj->AsPath()) in ProcessPageObjects() local
162 ProcessPath(buf, pPathObj); in ProcessPageObjects()
210 CPDF_PathObject* pPathObj) { in ProcessPath() argument
211 ProcessGraphics(buf, pPathObj); in ProcessPath()
213 *buf << pPathObj->m_Matrix << " cm "; in ProcessPath()
215 auto& pPoints = pPathObj->m_Path.GetPoints(); in ProcessPath()
216 if (pPathObj->m_Path.IsRect()) { in ProcessPath()
248 if (pPathObj->m_FillType == 0) in ProcessPath()
249 *buf << (pPathObj->m_bStroke ? " S" : " n"); in ProcessPath()
250 else if (pPathObj->m_FillType == FXFILL_WINDING) in ProcessPath()
[all …]
Dcpdf_pagecontentgenerator.h35 void ProcessPath(std::ostringstream* buf, CPDF_PathObject* pPathObj);
/external/pdfium/core/fpdfapi/render/
Dcpdf_renderstatus.h109 bool ProcessPath(CPDF_PathObject* pPathObj, const CFX_Matrix* pObj2Device);
110 void ProcessPathPattern(CPDF_PathObject* pPathObj,
114 void DrawPathWithPattern(CPDF_PathObject* pPathObj,
118 bool SelectClipPath(const CPDF_PathObject* pPathObj,
153 const CPDF_GraphicStates* pPathObj,
Dcpdf_renderstatus.cpp1304 bool CPDF_RenderStatus::ProcessPath(CPDF_PathObject* pPathObj, in ProcessPath() argument
1306 int FillType = pPathObj->m_FillType; in ProcessPath()
1307 bool bStroke = pPathObj->m_bStroke; in ProcessPath()
1308 ProcessPathPattern(pPathObj, pObj2Device, FillType, bStroke); in ProcessPath()
1312 uint32_t fill_argb = FillType ? GetFillArgb(pPathObj) : 0; in ProcessPath()
1313 uint32_t stroke_argb = bStroke ? GetStrokeArgb(pPathObj) : 0; in ProcessPath()
1314 CFX_Matrix path_matrix = pPathObj->m_Matrix; in ProcessPath()
1329 static_cast<const CPDF_PageObject*>(pPathObj); in ProcessPath()
1335 CFX_GraphState graphState = pPathObj->m_GraphState; in ProcessPath()
1339 pPathObj->m_Path.GetObject(), &path_matrix, graphState.GetObject(), in ProcessPath()
[all …]
/external/pdfium/core/fpdfapi/page/
Dcpdf_streamcontentparser.cpp1489 auto pPathObj = pdfium::MakeUnique<CPDF_PathObject>(); in AddPathObject() local
1490 pPathObj->m_bStroke = bStroke; in AddPathObject()
1491 pPathObj->m_FillType = FillType; in AddPathObject()
1492 pPathObj->m_Path = Path; in AddPathObject()
1493 pPathObj->m_Matrix = matrix; in AddPathObject()
1494 SetGraphicStates(pPathObj.get(), true, false, true); in AddPathObject()
1495 pPathObj->CalcBoundingBox(); in AddPathObject()
1496 m_pObjectHolder->GetPageObjectList()->push_back(std::move(pPathObj)); in AddPathObject()