android.graphics.Path.rCubicTo()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(6.5k)|赞(0)|评价(0)|浏览(246)

本文整理了Java中android.graphics.Path.rCubicTo()方法的一些代码示例,展示了Path.rCubicTo()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Path.rCubicTo()方法的具体详情如下:
包路径:android.graphics.Path
类名称:Path
方法名:rCubicTo

Path.rCubicTo介绍

暂无

代码示例

代码示例来源:origin: scwang90/SmartRefreshLayout

break;
case 'c': // curveTo - Draws a cubic Bezier curve (relative)
  path.rCubicTo(val[k + 0], val[k + 1], val[k + 2], val[k + 3],
      val[k + 4], val[k + 5]);
    reflectiveCtrlPointY = currentY - ctrlPointY;
  path.rCubicTo(reflectiveCtrlPointX, reflectiveCtrlPointY,
      val[k + 0], val[k + 1],
      val[k + 2], val[k + 3]);

代码示例来源:origin: robolectric/robolectric

break;
case 'c': // curveto - Draws a cubic Bézier curve (relative)
 path.rCubicTo(val[k + 0], val[k + 1], val[k + 2], val[k + 3], val[k + 4], val[k + 5]);
  reflectiveCtrlPointY = currentY - ctrlPointY;
 path.rCubicTo(
   reflectiveCtrlPointX,
   reflectiveCtrlPointY,

代码示例来源:origin: andkulikov/Transitions-Everywhere

break;
case 'c': // curveto - Draws a cubic Bézier curve (relative)
  path.rCubicTo(val[k + 0], val[k + 1], val[k + 2], val[k + 3],
    val[k + 4], val[k + 5]);
  ctrlPointX = currentX + val[k + 2];
    reflectiveCtrlPointY = currentY - ctrlPointY;
  path.rCubicTo(reflectiveCtrlPointX, reflectiveCtrlPointY,
    val[k + 0], val[k + 1],
    val[k + 2], val[k + 3]);

代码示例来源:origin: tarek360/RichPath

break;
case 'c': // curveto - Draws a cubic Bézier curve (relative)
  path.rCubicTo(val[k + 0], val[k + 1], val[k + 2], val[k + 3],
      val[k + 4], val[k + 5]);
    reflectiveCtrlPointY = currentY - ctrlPointY;
  path.rCubicTo(reflectiveCtrlPointX, reflectiveCtrlPointY,
      val[k + 0], val[k + 1],
      val[k + 2], val[k + 3]);

代码示例来源:origin: jaredrummler/AnimatedSvgView

break;
case 'c': // curveto - Draws a cubic Bézier curve (relative)
 path.rCubicTo(val[k + 0], val[k + 1], val[k + 2], val[k + 3],
   val[k + 4], val[k + 5]);
  reflectiveCtrlPointY = currentY - ctrlPointY;
 path.rCubicTo(reflectiveCtrlPointX, reflectiveCtrlPointY,
   val[k + 0], val[k + 1],
   val[k + 2], val[k + 3]);

代码示例来源:origin: code-mc/loadtoast

toastPath.moveTo(leftMargin + th / 2, 0);
toastPath.rLineTo(ws*(IMAGE_WIDTH + MAX_TEXT_WIDTH), 0);
toastPath.rCubicTo(circleOffset, 0, th / 2, th / 2 - circleOffset, th / 2, th / 2);
toastPath.rCubicTo(0, -iconoffset, -iw / 2 + iconoffset, -iw / 2, -iw / 2, -iw / 2);
toastPath.rCubicTo(-iconoffset, 0, -iw / 2, iw / 2 - iconoffset, -iw / 2, iw / 2);
toastPath.rCubicTo(0, iconoffset, iw / 2 - iconoffset, iw / 2, iw / 2, iw / 2);
toastPath.rCubicTo(iconoffset, 0, iw / 2, -iw / 2 + iconoffset, iw / 2, -iw / 2);
toastPath.rLineTo(pd, 0);
toastPath.rCubicTo(0, circleOffset, circleOffset - th / 2, th / 2, -th / 2, th / 2);
toastPath.rLineTo(ws*(-IMAGE_WIDTH - MAX_TEXT_WIDTH), 0);
toastPath.rCubicTo(-circleOffset, 0, -th / 2, -th / 2 + circleOffset, -th / 2, -th / 2);
toastPath.rCubicTo(0, -circleOffset, -circleOffset + th / 2, -th / 2, th / 2, -th / 2);
toastPath.moveTo(leftMargin + th / 2, borderOffset);
toastPath.rLineTo(ws*(IMAGE_WIDTH + MAX_TEXT_WIDTH), 0);
toastPath.rCubicTo(circleOffset, 0, thb / 2, thb / 2 - circleOffset, thb / 2, thb / 2);
toastPath.rCubicTo(0, circleOffset, circleOffset - thb / 2, thb / 2, -thb / 2, thb / 2);
toastPath.rLineTo(ws*(-IMAGE_WIDTH - MAX_TEXT_WIDTH), 0);
toastPath.rCubicTo(-circleOffset, 0, -thb / 2, -thb / 2 + circleOffset, -thb / 2, -thb / 2);
toastPath.rCubicTo(0, -circleOffset, -circleOffset + thb / 2, -thb / 2, thb / 2, -thb / 2);

代码示例来源:origin: AlexMofer/ProjectX

/**
 * Same as cubicTo, but the coordinates are considered relative to the
 * current point on this contour. If there is no previous point, then a
 * moveTo(0,0) is inserted automatically.
 */
public void rCubicTo(float x1, float y1, float x2, float y2,
           float x3, float y3) {
  mPath.rCubicTo(x1, y1, x2, y2, x3, y3);
}

代码示例来源:origin: posm/OpenMapKitAndroid

@Override
public void rCubicTo(float x1, float y1, float x2, float y2, float x3, float y3) {
  super.rCubicTo(x1, y1, x2, y2, x3, y3);
}

代码示例来源:origin: luhaoaimama1/zone-sdk

public void rCubicTo(ZPointF control1, ZPointF control2, ZPointF point) {
  super.rCubicTo(control1.x, control1.y, control2.x, control2.y, point.x, point.y);
}

代码示例来源:origin: behumble/excanvas

@Override
public void rCubicTo(float x1, float y1, float x2, float y2, float x3, float y3) {
  super.rCubicTo(x1, y1, x2, y2, x3, y3);
  Instruction op = new Instruction(ID_RCUBIC_TO_float_float_float_float_float_float, new Object[] {x1, y1, x2, y2, x3, y3});
  opList.add(op);
  if(ExCanvas.debug) {
    Log.d(TAG, "rCubicTo("+x1+","+y1+","+x2+","+y2+","+x3+","+y3);
  }
}

代码示例来源:origin: pskink/PathDrawable

final float delta_e2y = (float) e2y - (float) e1y;
p.rCubicTo(delta_q1x, delta_q1y, delta_q2x, delta_q2y, delta_e2x, delta_e2y);

代码示例来源:origin: mtotschnig/MyExpenses

p.rCubicTo(92.6f, -170.6f, 213f, -440.3f, 269.4f, -768f);
p.lineTo(585f, 0f);
p.rLineTo(2.1f, 766f);

代码示例来源:origin: shenm233/WechatMOD

first.rCubicTo(8.125f, -16.317f, 39.753f, -27.851f, 55.49f, -2.765f);
second = new Path();
second.moveTo(60.531f, 17.235f);
second.rCubicTo(11.301f, 18.015f, -3.699f, 46.083f, -23.725f, 43.456f);
scalePath(first, density);
scalePath(second, density);
first.rCubicTo(4.457f, 16.75f, 1.512f, 37.982f, -22.557f, 42.699f);
second = new Path();
second.moveTo(42.402f, 62.699f);
second = new Path();
second.moveTo(35f, 6.791f);
second.rCubicTo(16.083f, 0f, 26.853f, 16.702f, 26.853f, 28.209f);
scalePath(first, density);
scalePath(second, density);
first.rCubicTo(0f, 10.926f, -8.709f, 26.416f, -29.958f, 26.416f);
second = new Path();
second.moveTo(35f, 61.416f);
second.rCubicTo(-7.5f, 0f, -23.946f, -8.211f, -23.946f, -26.416f);
scalePath(first, density);
scalePath(second, density);
second = new Path();
second.moveTo(9.475f, 17.346f);
second.rCubicTo(9.462f, -9.2f, 24.188f, -10.353f, 27.326f, -8.245f);
scalePath(first, density);
scalePath(second, density);

代码示例来源:origin: alexjlockwood/kyrie

break;
case 'c': // curveto - Draws a cubic Bezier curve (relative)
 path.rCubicTo(val[k], val[k + 1], val[k + 2], val[k + 3], val[k + 4], val[k + 5]);
  reflectiveCtrlPointY = currentY - ctrlPointY;
 path.rCubicTo(
   reflectiveCtrlPointX,
   reflectiveCtrlPointY,

代码示例来源:origin: org.robolectric/shadows-framework

break;
case 'c': // curveto - Draws a cubic Bézier curve (relative)
 path.rCubicTo(val[k + 0], val[k + 1], val[k + 2], val[k + 3], val[k + 4], val[k + 5]);
  reflectiveCtrlPointY = currentY - ctrlPointY;
 path.rCubicTo(
   reflectiveCtrlPointX,
   reflectiveCtrlPointY,

代码示例来源:origin: pskink/PathDrawable

break;
case 'c': // curveto - Draws a cubic Bézier curve (relative)
  path.rCubicTo(val[k + 0], val[k + 1], val[k + 2], val[k + 3],
      val[k + 4], val[k + 5]);
    reflectiveCtrlPointY = currentY - ctrlPointY;
  path.rCubicTo(reflectiveCtrlPointX, reflectiveCtrlPointY,
      val[k + 0], val[k + 1],
      val[k + 2], val[k + 3]);

代码示例来源:origin: ljying/ChinaMap

break;
case 'c': // curveto - Draws a cubic Bézier curve (relative)
  path.rCubicTo(val[k + 0], val[k + 1], val[k + 2], val[k + 3],
      val[k + 4], val[k + 5]);
    reflectiveCtrlPointY = currentY - ctrlPointY;
  path.rCubicTo(reflectiveCtrlPointX, reflectiveCtrlPointY,
      val[k + 0], val[k + 1],
      val[k + 2], val[k + 3]);

代码示例来源:origin: CB-ysx/CBRatingBar

break;
case 'c': // curveto - Draws a cubic Bézier curve (relative)
  path.rCubicTo(val[k + 0], val[k + 1], val[k + 2], val[k + 3],
      val[k + 4], val[k + 5]);
    reflectiveCtrlPointY = currentY - ctrlPointY;
  path.rCubicTo(reflectiveCtrlPointX, reflectiveCtrlPointY,
      val[k + 0], val[k + 1],
      val[k + 2], val[k + 3]);

相关文章