FileDocCategorySizeDatePackage
EmbossMaskFilter.javaAPI DocAndroid 5.1 API1517Thu Mar 12 22:22:30 GMT 2015android.graphics

EmbossMaskFilter

public class EmbossMaskFilter extends MaskFilter

Fields Summary
Constructors Summary
public EmbossMaskFilter(float[] direction, float ambient, float specular, float blurRadius)
Create an emboss maskfilter

param
direction array of 3 scalars [x, y, z] specifying the direction of the light source
param
ambient 0...1 amount of ambient light
param
specular coefficient for specular highlights (e.g. 8)
param
blurRadius amount to blur before applying lighting (e.g. 3)
return
the emboss maskfilter

        if (direction.length < 3) {
            throw new ArrayIndexOutOfBoundsException();
        }
        native_instance = nativeConstructor(direction, ambient, specular, blurRadius);
    
Methods Summary
private static native longnativeConstructor(float[] direction, float ambient, float specular, float blurRadius)