LithoRenderEffect
A Litho abstraction of RenderEffect. Android RenderEffect is a wrapper for native code, which means that the instances are never equal and if we pass such instances through Litho, it may break some of our optimizations which rely on object equivalence.
See RenderEffect
Inheritors
Types
A LithoRenderEffect that renders the contents of the input android.graphics.Bitmap. This is useful to create an input for other LithoRenderEffect types such as Blur or ColorFilter.
A LithoRenderEffect that is a composition of 2 other LithoRenderEffect instances combined by the specified android.graphics.BlendMode
A LithoRenderEffect that blurs the contents of the optional input RenderEffect with the specified radius along the x and y axis. If no input LithoRenderEffect is provided then all drawing commands issued with a android.graphics.RenderNode that this LithoRenderEffect is installed in will be blurred
A LithoRenderEffect that composes inner
with outer
, such that the results of inner
are treated as the source bitmap passed to outer
, i.e.
A LithoRenderEffect that applies the color filter to the provided LithoRenderEffect
A LithoRenderEffect instance that will offset the drawing content by the provided x and y offset.
A LithoRenderEffect that executes the provided android.graphics.RuntimeShader and passes the contents of the android.graphics.RenderNode that this LithoRenderEffect is installed on as an input to the shader.
A LithoRenderEffect that renders the contents of the input android.graphics.Shader. This is useful to create an input for other LithoRenderEffect types such as Blur or ColorFilter.
Functions
Creates a RenderEffect instance from this LithoRenderEffect.