FileDocCategorySizeDatePackage
LayerRasterizer.javaAPI DocAndroid 5.1 API1502Thu Mar 12 22:22:30 GMT 2015android.graphics

LayerRasterizer

public class LayerRasterizer extends Rasterizer

Fields Summary
Constructors Summary
public LayerRasterizer()

        native_instance = nativeConstructor();
    
Methods Summary
public voidaddLayer(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 voidaddLayer(Paint paint)

        nativeAddLayer(native_instance, paint.mNativePaint, 0, 0);
    
private static native voidnativeAddLayer(long native_layer, long native_paint, float dx, float dy)

private static native longnativeConstructor()