-
public class DropShadowSettings for a drop shadow to apply.
-
-
Constructor Summary
Constructors Constructor Description DropShadow()DropShadow(float radius, float dx, float dy, int color)DropShadow(DropShadow other)
-
Method Summary
Modifier and Type Method Description floatgetRadius()voidsetRadius(float radius)floatgetDx()voidsetDx(float dx)floatgetDy()voidsetDy(float dy)intgetColor()voidsetColor(int color)booleansameAs(DropShadow other)voidtransformBy(Matrix matrix)voidmultiplyOpacity(int newAlpha)voidapplyTo(Paint paint)Applies a shadow to the provided Paint object. voidapplyWithAlpha(int alpha, Paint paint)Applies a shadow to the provided Paint object, mixing its alpha by the provided value. voidapplyWithAlpha(int alpha, OffscreenLayer.ComposeOp op)Applies a shadow to the provided ComposeOp, mixing its alpha by the provided value. voidapplyTo(OffscreenLayer.ComposeOp op)Applies a shadow to the provided ComposeOp, to be used with OffscreenLayer. -
-
Constructor Detail
-
DropShadow
DropShadow()
-
DropShadow
DropShadow(float radius, float dx, float dy, int color)
-
DropShadow
DropShadow(DropShadow other)
-
-
Method Detail
-
getRadius
float getRadius()
-
setRadius
void setRadius(float radius)
-
getDx
float getDx()
-
setDx
void setDx(float dx)
-
getDy
float getDy()
-
setDy
void setDy(float dy)
-
getColor
int getColor()
-
setColor
void setColor(int color)
-
sameAs
boolean sameAs(DropShadow other)
-
transformBy
void transformBy(Matrix matrix)
-
multiplyOpacity
void multiplyOpacity(int newAlpha)
-
applyWithAlpha
void applyWithAlpha(int alpha, Paint paint)
Applies a shadow to the provided Paint object, mixing its alpha by the provided value.
-
applyWithAlpha
void applyWithAlpha(int alpha, OffscreenLayer.ComposeOp op)
Applies a shadow to the provided ComposeOp, mixing its alpha by the provided value.
-
applyTo
void applyTo(OffscreenLayer.ComposeOp op)
Applies a shadow to the provided ComposeOp, to be used with OffscreenLayer.
-
-
-
-