Home
last modified time | relevance | path

Searched refs:dstPoints (Results 1 – 5 of 5) sorted by relevance

/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ets/ets/testcase/interface/
H A Dmatrixtest.ts197 let dstPoints: Array<common2D.Point> = [ { x:0, y: 0 }, { x:0, y: 0 } ];
207 if (matrix.setPolyToPoly(srcPoints, dstPoints, 2)) {
209 canvas.drawLine(dstPoints[0].x, dstPoints[0].y, dstPoints[1].x, dstPoints[1].y);
224 let dstPoints: Array<common2D.Point> = [ { x:0, y: 0 }, { x:0, y: 0 } ];
228 matrix.setPolyToPoly(srcPoints, dstPoints, 2);
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/src/
H A Ddrawing_matrix.cpp300 std::vector<Point> dstPoints(count); in OH_Drawing_MatrixMapPoints() local
303 dstPoints[idx] = dstTemp[idx]; in OH_Drawing_MatrixMapPoints()
305 matrix->MapPoints(dstPoints, srcPoints, count); in OH_Drawing_MatrixMapPoints()
307 dstTemp[idx] = dstPoints[idx]; in OH_Drawing_MatrixMapPoints()
/ohos5.0/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/drawing/matrix_napi/
H A Djs_matrix.cpp549 std::vector<Point> dstPoints(srcPointsSize); in OnMapPoints() local
556 JS_CALL_DRAWING_FUNC(m_matrix->MapPoints(dstPoints, srcPoints, srcPointsSize)); in OnMapPoints()
559 if (napi_create_array_with_length(env, dstPoints.size(), &resultArray) != napi_ok) { in OnMapPoints()
563 for (uint32_t idx = 0; idx < dstPoints.size(); idx++) { in OnMapPoints()
564 …NAPI_CALL(env, napi_set_element(env, resultArray, idx, ConvertPointToJsValue(env, dstPoints.at(idx… in OnMapPoints()
670 Drawing::Point dstPoints[POLY_POINT_COUNT_MAX]; in OnSetPolyToPoly() local
671 if (!ConvertFromJsPointsArray(env, argv[ARGC_ONE], dstPoints, count)) { in OnSetPolyToPoly()
676 bool result = m_matrix->SetPolyToPoly(srcPoints, dstPoints, count); in OnSetPolyToPoly()
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkgraphics2d/
H A Djs-apis-graphics-drawing.md7305 let dstPoints: Array<common2D.Point> = [{ x:0, y: 10 }, { x:300, y: 600 }];
7307 if (matrix.setPolyToPoly(srcPoints, dstPoints, 2)) {
/ohos5.0/docs/en/application-dev/reference/apis-arkgraphics2d/
H A Djs-apis-graphics-drawing.md7305 let dstPoints: Array<common2D.Point> = [{ x:0, y: 10 }, { x:300, y: 600 }];
7307 if (matrix.setPolyToPoly(srcPoints, dstPoints, 2)) {