Lines Matching refs:paint

30  * Path, text, Bitmap), and a paint (to describe the colors and styles for the
360 * @param paint This is copied, and is applied to the offscreen when
365 public int saveLayer(RectF bounds, Paint paint, int saveFlags) {
367 paint != null ? paint.mNativePaint : 0,
374 public int saveLayer(float left, float top, float right, float bottom, Paint paint,
377 paint != null ? paint.mNativePaint : 0,
856 * the specified paint. This is equivalent (but faster) to drawing an
857 * infinitely large rectangle with the specified paint.
859 * @param paint The paint used to draw onto the canvas
861 public void drawPaint(Paint paint) {
862 native_drawPaint(mNativeCanvas, paint.mNativePaint);
867 * specified by pts[], and its diameter is specified by the paint's stroke
871 * the paint's Cap type. The shape is a square, unless the cap type is
879 * @param paint The paint used to draw the points
881 public native void drawPoints(float[] pts, int offset, int count, Paint paint);
886 public void drawPoints(float[] pts, Paint paint) {
887 drawPoints(pts, 0, pts.length, paint);
893 public native void drawPoint(float x, float y, Paint paint);
897 * using the specified paint.
899 * <p>Note that since a line is always "framed", the Style is ignored in the paint.</p>
905 * @param paint The paint used to draw the line
907 public void drawLine(float startX, float startY, float stopX, float stopY, Paint paint) {
908 native_drawLine(mNativeCanvas, startX, startY, stopX, stopY, paint.mNativePaint);
924 * @param paint The paint used to draw the points
926 public native void drawLines(float[] pts, int offset, int count, Paint paint);
928 public void drawLines(float[] pts, Paint paint) {
929 drawLines(pts, 0, pts.length, paint);
933 * Draw the specified Rect using the specified paint. The rectangle will
934 * be filled or framed based on the Style in the paint.
937 * @param paint The paint used to draw the rect
939 public void drawRect(RectF rect, Paint paint) {
940 native_drawRect(mNativeCanvas, rect, paint.mNativePaint);
945 * will be filled or framed based on the Style in the paint.
948 * @param paint The paint used to draw the rectangle
950 public void drawRect(Rect r, Paint paint) {
951 drawRect(r.left, r.top, r.right, r.bottom, paint);
956 * Draw the specified Rect using the specified paint. The rectangle will
957 * be filled or framed based on the Style in the paint.
963 * @param paint The paint used to draw the rect
965 public void drawRect(float left, float top, float right, float bottom, Paint paint) {
966 native_drawRect(mNativeCanvas, left, top, right, bottom, paint.mNativePaint);
970 * Draw the specified oval using the specified paint. The oval will be
971 * filled or framed based on the Style in the paint.
975 public void drawOval(RectF oval, Paint paint) {
979 native_drawOval(mNativeCanvas, oval, paint.mNativePaint);
983 * Draw the specified circle using the specified paint. If radius is <= 0,
985 * on the Style in the paint.
990 * @param paint The paint used to draw the circle
992 public void drawCircle(float cx, float cy, float radius, Paint paint) {
993 native_drawCircle(mNativeCanvas, cx, cy, radius, paint.mNativePaint);
1017 * @param paint The paint used to draw the arc
1020 Paint paint) {
1025 useCenter, paint.mNativePaint);
1029 * Draw the specified round-rect using the specified paint. The roundrect
1030 * will be filled or framed based on the Style in the paint.
1035 * @param paint The paint used to draw the roundRect
1037 public void drawRoundRect(RectF rect, float rx, float ry, Paint paint) {
1042 paint.mNativePaint);
1046 * Draw the specified path using the specified paint. The path will be
1047 * filled or framed based on the Style in the paint.
1050 * @param paint The paint used to draw the path
1052 public void drawPath(Path path, Paint paint) {
1053 native_drawPath(mNativeCanvas, path.ni(), paint.mNativePaint);
1070 * @param paint The paint to draw the bitmap with. may be null
1074 public void drawPatch(Bitmap bitmap, byte[] chunks, RectF dst, Paint paint) {
1079 * the specified paint, transformed by the current matrix.
1081 * <p>Note: if the paint contains a maskfilter that generates a mask which
1094 * @param paint The paint used to draw the bitmap (may be null)
1096 public void drawBitmap(Bitmap bitmap, float left, float top, Paint paint) {
1099 paint != null ? paint.mNativePaint : 0, mDensity, mScreenDensity, bitmap.mDensity);
1107 * <p>Note: if the paint contains a maskfilter that generates a mask which
1122 * @param paint May be null. The paint used to draw the bitmap
1124 public void drawBitmap(Bitmap bitmap, Rect src, RectF dst, Paint paint) {
1130 paint != null ? paint.mNativePaint : 0, mScreenDensity, bitmap.mDensity);
1138 * <p>Note: if the paint contains a maskfilter that generates a mask which
1153 * @param paint May be null. The paint used to draw the bitmap
1155 public void drawBitmap(Bitmap bitmap, Rect src, Rect dst, Paint paint) {
1161 paint != null ? paint.mNativePaint : 0, mScreenDensity, bitmap.mDensity);
1181 * @param paint May be null. The paint used to draw the bitmap
1184 int width, int height, boolean hasAlpha, Paint paint) {
1207 paint != null ? paint.mNativePaint : 0);
1213 int width, int height, boolean hasAlpha, Paint paint) {
1216 hasAlpha, paint);
1224 * @param paint May be null. The paint used to draw the bitmap
1226 public void drawBitmap(Bitmap bitmap, Matrix matrix, Paint paint) {
1228 paint != null ? paint.mNativePaint : 0);
1264 * @param paint May be null. The paint used to draw the bitmap
1267 float[] verts, int vertOffset, int[] colors, int colorOffset, Paint paint) {
1283 paint != null ? paint.mNativePaint : 0);
1305 * coordinates to use at each vertex (the paint must have a shader in this
1329 * @param paint Specifies the shader to use if the texs array is non-null.
1333 short[] indices, int indexOffset, int indexCount, Paint paint) {
1346 indices, indexOffset, indexCount, paint.mNativePaint);
1350 * Draw the text, with origin at (x,y), using the specified paint. The
1351 * origin is interpreted based on the Align setting in the paint.
1356 * @param paint The paint used for the text (e.g. color, size, style)
1358 public void drawText(char[] text, int index, int count, float x, float y, Paint paint) {
1363 native_drawText(mNativeCanvas, text, index, count, x, y, paint.mBidiFlags,
1364 paint.mNativePaint);
1368 * Draw the text, with origin at (x,y), using the specified paint. The
1369 * origin is interpreted based on the Align setting in the paint.
1374 * @param paint The paint used for the text (e.g. color, size, style)
1376 public void drawText(String text, float x, float y, Paint paint) {
1377 native_drawText(mNativeCanvas, text, 0, text.length(), x, y, paint.mBidiFlags,
1378 paint.mNativePaint);
1382 * Draw the text, with origin at (x,y), using the specified paint.
1383 * The origin is interpreted based on the Align setting in the paint.
1390 * @param paint The paint used for the text (e.g. color, size, style)
1392 public void drawText(String text, int start, int end, float x, float y, Paint paint) {
1396 native_drawText(mNativeCanvas, text, start, end, x, y, paint.mBidiFlags,
1397 paint.mNativePaint);
1411 * @param paint The paint used for the text (e.g. color, size, style)
1413 public void drawText(CharSequence text, int start, int end, float x, float y, Paint paint) {
1417 paint.mBidiFlags, paint.mNativePaint);
1420 paint);
1425 paint.mBidiFlags, paint.mNativePaint);
1448 * @param paint the paint
1452 float x, float y, int dir, Paint paint) {
1457 if (paint == null) {
1458 throw new NullPointerException("paint is null");
1468 contextIndex, contextCount, x, y, dir, paint.mNativePaint);
1485 * @param paint the paint
1489 float x, float y, int dir, Paint paint) {
1494 if (paint == null) {
1495 throw new NullPointerException("paint is null");
1506 contextStart, contextEnd, x, y, flags, paint.mNativePaint);
1509 contextStart, contextEnd, x, y, flags, paint);
1516 0, contextLen, x, y, flags, paint.mNativePaint);
1533 * @param paint The paint used for the text (e.g. color, size, style)
1536 public void drawPosText(char[] text, int index, int count, float[] pos, Paint paint) {
1541 paint.mNativePaint);
1553 * @param paint The paint used for the text (e.g. color, size, style)
1556 public void drawPosText(String text, float[] pos, Paint paint) {
1560 native_drawPosText(mNativeCanvas, text, pos, paint.mNativePaint);
1564 * Draw the text, with origin at (x,y), using the specified paint, along
1565 * the specified path. The paint's Align setting determins where along the
1574 * @param paint The paint used for the text (e.g. color, size, style)
1577 float hOffset, float vOffset, Paint paint) {
1583 paint.mBidiFlags, paint.mNativePaint);
1587 * Draw the text, with origin at (x,y), using the specified paint, along
1588 * the specified path. The paint's Align setting determins where along the
1597 * @param paint The paint used for the text (e.g. color, size, style)
1599 public void drawTextOnPath(String text, Path path, float hOffset, float vOffset, Paint paint) {
1602 paint.mBidiFlags, paint.mNativePaint);
1666 int paint, int layerFlags);
1669 int paint, int layerFlags);
1708 private static native void native_drawPaint(int nativeCanvas, int paint);
1711 float stopY, int paint);
1713 int paint);
1716 float bottom, int paint);
1718 int paint);
1721 int paint);
1724 boolean useCenter, int paint);
1727 float ry, int paint);
1729 int paint);
1764 float y, int flags, int paint);
1767 float y, int flags, int paint);
1771 float x, float y, int flags, int paint);
1775 float x, float y, int flags, int paint);
1780 int paint);
1783 int paint);
1789 int paint);
1794 int flags, int paint);