Lines Matching defs:paint
16 init_linear_gradient(VGPaint paint)
24 vgSetParameteri(paint, VG_PAINT_TYPE, VG_PAINT_TYPE_LINEAR_GRADIENT);
25 vgSetParameteri(paint, VG_PAINT_COLOR_RAMP_SPREAD_MODE, spread);
26 vgSetParameterfv(paint, VG_PAINT_LINEAR_GRADIENT, 4, linearGradient);
27 vgSetParameterfv(paint, VG_PAINT_COLOR_RAMP_STOPS, 20, rampStop);
31 init_radial_gradient(VGPaint paint, VGboolean centered)
42 vgSetParameteri(paint, VG_PAINT_TYPE, VG_PAINT_TYPE_RADIAL_GRADIENT);
43 vgSetParameteri(paint, VG_PAINT_COLOR_RAMP_SPREAD_MODE, spread);
44 vgSetParameterfv(paint, VG_PAINT_RADIAL_GRADIENT, 5, radialGradient);
45 vgSetParameterfv(paint, VG_PAINT_COLOR_RAMP_STOPS, 20, rampStop);
49 init_pattern(VGPaint paint)
69 vgSetParameteri(paint, VG_PAINT_TYPE, VG_PAINT_TYPE_PATTERN);
70 vgSetParameteri(paint, VG_PAINT_PATTERN_TILING_MODE, VG_TILE_REPEAT);
71 vgPaintPattern(paint, img);
105 draw_with_paint(VGPaint paint, VGint x, VGint y)
107 vgSetPaint(paint, VG_FILL_PATH | VG_STROKE_PATH);
110 * The paint and the path are both 100x100. Scale the paint by 2
111 * horizontally and draw the path twice to cover the scaled paint.
114 /* scale the paint */