Searched defs:paint (Results 1 - 25 of 701) sorted by relevance

1234567891011>>

/external/skia/gm/
H A Ddrawregion.cpp43 SkPaint paint; variable
44 paint.setStyle(SkPaint::kFill_Style);
45 paint.setColor(0xFFFF00FF);
46 canvas->drawRect(SkRect::MakeLTRB(50.0f, 50.0f, 250.0f, 250.0f), paint);
48 paint.setColor(0xFF00FFFF);
49 canvas->drawRegion(fRegion, paint);
H A Dskbug1719.cpp61 SkPaint paint; local
62 paint.setAntiAlias(true);
63 paint.setColor(0xFF000000);
64 paint.setMaskFilter(
67 paint.setColorFilter(SkColorFilter::MakeModeFilter(0xBFFFFFFF, SkBlendMode::kSrcIn));
70 canvas->drawPath(drawPath, paint);
H A Dskbug_4868.cpp14 SkPaint paint; local
15 paint.setAntiAlias(true);
16 paint.setStyle(SkPaint::kStroke_Style);
21 canvas->drawLine(rc.left(), rc.top(), rc.right(), rc.bottom(), paint);
22 canvas->drawLine(rc.right(), rc.top(), rc.left(), rc.bottom(), paint);
H A Dbigtext.cpp33 SkPaint paint; variable
34 paint.setAntiAlias(true);
35 sk_tool_utils::set_portable_typeface(&paint); member in class:BigTextGM::sk_tool_utils
36 paint.setTextSize(1500);
39 (void)paint.measureText("/", 1, &r);
45 paint.setColor(SK_ColorRED);
46 canvas->drawString("/", pos.fX, pos.fY, paint);
48 paint.setColor(SK_ColorBLUE);
49 canvas->drawPosText("\\", 1, &pos, paint);
H A Ddrawable.cpp21 SkPaint paint; variable
22 paint.setColor(SK_ColorBLUE);
23 canvas->drawRect(path.getBounds(), paint);
25 paint.setAntiAlias(true);
26 paint.setColor(SK_ColorWHITE);
27 canvas->drawPath(path, paint);
H A Dbitmaprecttest.cpp17 SkPaint paint; local
23 canvas.drawPath(path, paint);
25 paint.setStyle(SkPaint::kStroke_Style);
26 canvas.drawRect(SkRect::MakeLTRB(0.5f, 0.5f, 59.5f, 59.5f), paint);
H A Dblurcircles.cpp51 SkPaint paint; variable
52 paint.setColor(SK_ColorBLACK);
53 paint.setMaskFilter(fBlurFilters[i]);
55 canvas->drawCircle(SkIntToScalar(50),SkIntToScalar(50),SkIntToScalar(circleRadii[j]),paint); variable
H A Dblurimagevmask.cpp15 SkPaint paint; local
16 paint.setAntiAlias(true);
17 paint.setColor(SK_ColorBLACK);
33 canvas->drawRect(r, paint);
41 paint.setMaskFilter(
44 canvas->drawRect(r, paint);
45 paint.setMaskFilter(nullptr);
52 canvas->drawRect(r, paint);
H A Dcolorfilteralpha8.cpp33 SkPaint paint; variable
40 paint.setColorFilter(SkColorFilter::MakeMatrixFilterRowMajor255(opaqueGrayMatrix));
42 canvas->drawBitmap(bitmap, 100.0f, 100.0f, &paint);
H A Dcolorwheel.cpp42 SkPaint paint; local
43 sk_tool_utils::set_portable_typeface(&paint, "sans-serif",
45 paint.setTextSize(18.0f);
48 paint.setColor(SK_ColorRED);
49 canvas->drawString("R", 8.0f, 20.0f, paint);
50 paint.setColor(SK_ColorGREEN);
51 canvas->drawString("G", 24.0f, 20.0f, paint);
52 paint.setColor(SK_ColorBLUE);
53 canvas->drawString("B", 40.0f, 20.0f, paint);
54 paint
[all...]
H A Demboss.cpp20 SkPaint paint; local
21 paint.setAntiAlias(true);
22 canvas.drawCircle(50, 50, 50, paint);
41 SkPaint paint; variable
43 canvas->drawBitmap(bm, 10, 10, &paint);
46 paint.setMaskFilter(SkBlurMaskFilter::MakeEmboss(3, dir, 0.3f, 0.1f));
48 canvas->drawBitmap(bm, 10, 10, &paint);
52 paint.setColorFilter(SkColorFilter::MakeModeFilter(0xFFFF0000, SkBlendMode::kSrcATop));
54 canvas->drawBitmap(bm, 10, 10, &paint);
H A Dlargeglyphblur.cpp21 SkPaint paint; local
22 sk_tool_utils::set_portable_typeface(&paint);
23 paint.setTextSize(256);
24 paint.setAntiAlias(true);
29 SkPaint blurPaint(paint);
34 sk_tool_utils::add_to_text_blob(&builder, text, paint, 0, 0);
38 canvas->drawTextBlob(blob, 10, 200, paint);
42 canvas->drawText(text, len, 10, 500, paint);
H A Dstroke_rect_shader.cpp20 SkPaint paint; local
23 paint.setShader(std::move(shader));
24 paint.setStyle(SkPaint::kStroke_Style);
30 paint.setAntiAlias(aa);
34 paint.setStrokeWidth(kStrokeWidth);
36 paint.setStrokeJoin(SkPaint::kBevel_Join);
37 canvas->drawRect(kRect, paint);
40 paint.setStrokeJoin(SkPaint::kMiter_Join);
41 canvas->drawRect(kRect, paint);
45 paint
[all...]
H A Dtestgradient.cpp28 // Set up a gradient paint for a rect.
29 // And non-gradient paint for other objects.
32 SkPaint paint; variable
33 paint.setStyle(SkPaint::kFill_Style);
34 paint.setAntiAlias(true);
35 paint.setStrokeWidth(4);
36 paint.setColor(0xFFFE938C);
45 SkPaint newPaint(paint);
54 paint.setColor(0xFFE6B89C);
55 canvas->drawRRect(oval, paint);
[all...]
H A Dthinstrokedrects.cpp30 SkPaint paint; variable
31 paint.setColor(SK_ColorWHITE);
32 paint.setStyle(SkPaint::kStroke_Style);
33 paint.setAntiAlias(true);
47 paint.setStrokeWidth(gStrokeWidths[j]);
48 canvas->drawRect(rect, paint);
55 paint.setColor(SK_ColorRED);
62 paint.setStrokeWidth(2.0f * gStrokeWidths[j]);
63 canvas->drawRect(rect2, paint);
/external/skia/src/core/
H A DSkXfermodeInterpretation.cpp15 SkXfermodeInterpretation SkInterpretXfermode(const SkPaint& paint, bool dstIsOpaque) { argument
16 switch (paint.getBlendMode()) {
20 if (just_solid_color(paint)) {
32 if (dstIsOpaque && just_solid_color(paint)) {
37 if (just_solid_color(paint)) {
/external/skia/src/effects/
H A DSkPaintFlagsDrawFilter.cpp17 bool SkPaintFlagsDrawFilter::filter(SkPaint* paint, Type) { argument
18 paint->setFlags((paint->getFlags() & ~fClearFlags) | fSetFlags);
/external/proguard/src/proguard/gui/splash/
H A DSprite.java26 * This interface describes objects that can paint themselves, possibly varying
36 * @param graphics the Graphics to paint on.
40 public void paint(Graphics graphics, long time); method in interface:Sprite
H A DColorSprite.java51 public void paint(Graphics graphics, long time) method in class:ColorSprite
60 sprite.paint(graphics, time);
H A DCompositeSprite.java48 public void paint(Graphics graphics, long time) method in class:CompositeSprite
53 sprites[index].paint(graphics, time);
H A DFontSprite.java51 public void paint(Graphics graphics, long time) method in class:FontSprite
60 sprite.paint(graphics, time);
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
H A DShadowShapeDrawable.java11 private Paint paint = new Paint(); field in class:ShadowShapeDrawable
15 return paint;
/external/skia/tests/
H A Dskbug5221.cpp14 SkPaint paint; local
15 paint.setAntiAlias(true);
18 canvas->drawText(kTxt, SK_ARRAY_COUNT(kTxt), 50, 50, paint);
/external/skia/tools/fiddle/
H A Ddraw.cpp23 SkPaint paint; local
24 paint.setShader(image->makeShader(SkShader::kRepeat_TileMode,
27 canvas->drawPaint(paint);
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/util/
H A DFontUtils.java25 * Determines the height of the tallest character that can be drawn by paint.
26 * @param paint
29 public static float getFontHeight(Paint paint) { argument
30 Paint.FontMetrics metrics = paint.getFontMetrics();
36 * Get the smallest rect that ecompasses the text to be drawn using paint.
38 * @param paint
41 public static Rect getPackedStringDimensions(String text, Paint paint) { argument
43 paint.getTextBounds(text, 0, text.length(), size);
52 * @param paint
55 public static Rect getStringDimensions(String text, Paint paint) { argument
[all...]

Completed in 286 milliseconds

1234567891011>>