Lines Matching refs:paint

25 static void set_strokeandfill(SkPaint* paint) {
26 SkASSERT(paint->getPathEffect() == nullptr);
27 paint->setPathEffect(SkStrokeAndFillPathEffect::Make());
28 paint->setStroke(true);
32 * paint.setTypeface(SkTypeface::CreateByName("Papyrus"));
33 * paint.getTextPath("H", 1, 100, 80, &textPath);
229 * paint.setTypeface(SkTypeface::CreateByName("Hiragino Maru Gothic Pro"));
231 * paint.getTextPath(hyphen, SK_ARRAY_COUNT(hyphen), 400, 80, &textPath);
247 SkScalar x, SkScalar y, const SkPaint& paint, const SkFont& font) {
248 canvas->drawString(text, x, y, font, paint);
251 canvas->drawString(text, x, y + 120, f, paint);
255 const SkPaint& paint, float textSize) {
256 SkPaint p(paint);
278 SkPaint paint;
279 paint.setAntiAlias(true);
280 paint.setStrokeWidth(SkIntToScalar(5));
284 path_bold(canvas, papyrus_hello(), paint, font.getSize());
285 path_bold(canvas, hiragino_maru_gothic_pro_dash(), paint, font.getSize());
287 show_bold(canvas, "Hi There", x + SkIntToScalar(430), y, paint, font);
289 set_strokeandfill(&paint);
295 canvas->drawPath(path, paint);
301 canvas->drawPath(path2, paint);
305 canvas->drawPath(path2, paint);
312 canvas->drawPath(path2, paint);
321 canvas->drawPath(path3, paint);
330 canvas->drawPath(path4, paint);
339 canvas->drawPath(path4, paint);
348 canvas->drawPath(path4, paint);
365 SkPaint paint;
366 paint.setAntiAlias(true);
367 paint.setColor(SK_ColorBLACK);
368 paint.setStyle(SkPaint::kFill_Style);
369 canvas->drawPath(path, paint);
371 paint.setColor(SK_ColorRED);
372 paint.setStyle(SkPaint::kStroke_Style);
373 paint.setStrokeWidth(1);
374 canvas->drawPath(path, paint);
396 SkPaint paint;
397 paint.setAntiAlias(true);
398 paint.setStyle(SkPaint::kFill_Style);
399 paint.setColor(SK_ColorRED);
400 paint.setStyle(SkPaint::kStroke_Style);
401 paint.setStrokeWidth(1);
402 canvas->drawPath(path, paint);
406 SkPaint paint;
407 paint.setStyle(SkPaint::kStroke_Style);
408 paint.setStrokeWidth(0.0001f);
409 paint.setAntiAlias(true);
417 canvas->drawPath(path, paint);