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)

向光栅化器添加一个新图层(在任何以前的图层之上)。

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)

向光栅化器添加一个新图层(在任何以前的图层之上)。 该图层将从指定的绘画中提取那些影响蒙版的字段,但不会保留对绘制对象本身的引用,因此可以重复使用,而没有副作用的危险。

Parameters
paint Paint
dx float
dy float

Hooray!