lightbulb_outline Please take our October 2018 developer survey. Start survey
added in API level 1

EmbossMaskFilter

public class EmbossMaskFilter
extends MaskFilter

java.lang.Object
   ↳ android.graphics.MaskFilter
     ↳ android.graphics.EmbossMaskFilter


Summary

Public constructors

EmbossMaskFilter(float[] direction, float ambient, float specular, float blurRadius)

This constructor was deprecated in API level 28. This subclass is not supported and should not be instantiated.

Inherited methods

Public constructors

EmbossMaskFilter

added in API level 1
public EmbossMaskFilter (float[] direction, 
                float ambient, 
                float specular, 
                float blurRadius)

This constructor was deprecated in API level 28.
This subclass is not supported and should not be instantiated.

Create an emboss maskfilter

Parameters
direction float: array of 3 scalars [x, y, z] specifying the direction of the light source

ambient float: 0...1 amount of ambient light

specular float: coefficient for specular highlights (e.g. 8)

blurRadius float: amount to blur before applying lighting (e.g. 3)

Returns
the emboss maskfilter