Most visited

Recently visited

Added in API level 1
Deprecated since API level 21

LayerRasterizer

public class LayerRasterizer
extends Rasterizer

java.lang.Object
   ↳ android.graphics.Rasterizer
     ↳ android.graphics.LayerRasterizer


Summary

Public constructors

LayerRasterizer()

Public methods

void addLayer(Paint paint)
void addLayer(Paint paint, float dx, float dy)

Add a new layer (above any previous layers) to the rasterizer.

Inherited methods

From class android.graphics.Rasterizer
From class java.lang.Object

Public constructors

LayerRasterizer

Added in API level 1
LayerRasterizer ()

Public methods

addLayer

Added in API level 1
void addLayer (Paint paint)

Parameters
paint Paint

addLayer

Added in API level 1
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.

Parameters
paint Paint
dx float
dy float

Hooray!