LayerRasterizerpublic class LayerRasterizer extends Rasterizer
Constructors Summary |
---|
public LayerRasterizer()
native_instance = nativeConstructor();
|
Methods Summary |
---|
public void | addLayer(Paint paint, float dx, float dy)Add a new layer (above any previous layers) to the rasterizer.
The layer will extract those fields that affect the mask from
the specified paint, but will not retain a reference to the paint
object itself, so it may be reused without danger of side-effects.
nativeAddLayer(native_instance, paint.mNativePaint, dx, dy);
| public void | addLayer(Paint paint)
nativeAddLayer(native_instance, paint.mNativePaint, 0, 0);
| private static native void | nativeAddLayer(int native_layer, int native_paint, float dx, float dy)
| private static native int | nativeConstructor()
|
|