Home
last modified time | relevance | path

Searched refs:offsetSquare (Results 1 – 2 of 2) sorted by relevance

/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/render/
H A Drs_spherize_effect_filter.cpp79 float offsetSquare = 0.f; in DrawImageRect() local
81offsetSquare = (width - height) * spherizeDegree_ / 2.0; // 2.0 express half of the change distance in DrawImageRect()
84offsetSquare = (height - width) * spherizeDegree_ / 2.0; // 2.0 express half of the change distance in DrawImageRect()
114 ctrlPoints[i].Offset(offsetSquare, 0); in DrawImageRect()
118 ctrlPoints[i].Offset(0, offsetSquare); in DrawImageRect()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/property/
H A Drs_properties_painter.cpp1532 float offsetSquare = 0.f; in DrawSpherize() local
1534 offsetSquare = (width - height) * degree / 2.0; // half of the change distance in DrawSpherize()
1537 offsetSquare = (height - width) * degree / 2.0; // half of the change distance in DrawSpherize()
1565 ctrlPoints[i].Offset(offsetSquare, 0); in DrawSpherize()
1569 ctrlPoints[i].Offset(0, offsetSquare); in DrawSpherize()