# RenderEffect

Added in[API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Summary:[Methods](https://developer.android.com/reference/android/graphics/RenderEffect#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/graphics/RenderEffect#inhmethods)  

# RenderEffect

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/android/graphics/RenderEffect "View this page in Kotlin")\|Java

`
public

final

class
RenderEffect
`  
`

extends `[Object](https://developer.android.com/reference/java/lang/Object)`


``


`

|---|-------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.graphics.RenderEffect |

<br />

*** ** * ** ***

Intermediate rendering step used to render drawing commands with a corresponding visual effect. A[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect)can be configured on a[RenderNode](https://developer.android.com/reference/android/graphics/RenderNode)through[RenderNode.setRenderEffect(RenderEffect)](https://developer.android.com/reference/android/graphics/RenderNode#setRenderEffect(android.graphics.RenderEffect))and will be applied when drawn through[Canvas.drawRenderNode(RenderNode)](https://developer.android.com/reference/android/graphics/Canvas#drawRenderNode(android.graphics.RenderNode)). Additionally a[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect)can be applied to a View's backing RenderNode through[View.setRenderEffect(RenderEffect)](https://developer.android.com/reference/android/view/View#setRenderEffect(android.graphics.RenderEffect))

## Summary

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ### Public methods                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ||
|-------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` static `[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect) | ` `[createBitmapEffect](https://developer.android.com/reference/android/graphics/RenderEffect#createBitmapEffect(android.graphics.Bitmap))`(`[Bitmap](https://developer.android.com/reference/android/graphics/Bitmap)` bitmap) ` Create a[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect)that renders the contents of the input[Bitmap](https://developer.android.com/reference/android/graphics/Bitmap).                                                                                                                                                                                                                                                                                                                                                                                                      |
| ` static `[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect) | ` `[createBitmapEffect](https://developer.android.com/reference/android/graphics/RenderEffect#createBitmapEffect(android.graphics.Bitmap,%20android.graphics.Rect,%20android.graphics.Rect))`(`[Bitmap](https://developer.android.com/reference/android/graphics/Bitmap)` bitmap, `[Rect](https://developer.android.com/reference/android/graphics/Rect)` src, `[Rect](https://developer.android.com/reference/android/graphics/Rect)` dst) ` Create a[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect)that renders the contents of the input[Bitmap](https://developer.android.com/reference/android/graphics/Bitmap).                                                                                                                                                                                          |
| ` static `[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect) | ` `[createBlendModeEffect](https://developer.android.com/reference/android/graphics/RenderEffect#createBlendModeEffect(android.graphics.RenderEffect,%20android.graphics.RenderEffect,%20android.graphics.BlendMode))`(`[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect)` dst, `[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect)` src, `[BlendMode](https://developer.android.com/reference/android/graphics/BlendMode)` blendMode) ` Create a[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect)that is a composition of 2 other[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect)instances combined by the specified[BlendMode](https://developer.android.com/reference/android/graphics/BlendMode) |
| ` static `[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect) | ` `[createBlurEffect](https://developer.android.com/reference/android/graphics/RenderEffect#createBlurEffect(float,%20float,%20android.graphics.Shader.TileMode))`(float radiusX, float radiusY, `[Shader.TileMode](https://developer.android.com/reference/android/graphics/Shader.TileMode)` edgeTreatment) ` Create a[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect)that blurs the contents of the[RenderNode](https://developer.android.com/reference/android/graphics/RenderNode)that this RenderEffect is installed on with the specified radius along the x and y axis.                                                                                                                                                                                                                                 |
| ` static `[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect) | ` `[createBlurEffect](https://developer.android.com/reference/android/graphics/RenderEffect#createBlurEffect(float,%20float,%20android.graphics.RenderEffect,%20android.graphics.Shader.TileMode))`(float radiusX, float radiusY, `[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect)` inputEffect, `[Shader.TileMode](https://developer.android.com/reference/android/graphics/Shader.TileMode)` edgeTreatment) ` Create a[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect)that blurs the contents of the optional input RenderEffect with the specified radius along the x and y axis.                                                                                                                                                                                      |
| ` static `[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect) | ` `[createChainEffect](https://developer.android.com/reference/android/graphics/RenderEffect#createChainEffect(android.graphics.RenderEffect,%20android.graphics.RenderEffect))`(`[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect)` outer, `[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect)` inner) ` Create a[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect)that composes 'inner' with 'outer', such that the results of 'inner' are treated as the source bitmap passed to 'outer', i.e.                                                                                                                                                                                                                                          |
| ` static `[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect) | ` `[createColorFilterEffect](https://developer.android.com/reference/android/graphics/RenderEffect#createColorFilterEffect(android.graphics.ColorFilter,%20android.graphics.RenderEffect))`(`[ColorFilter](https://developer.android.com/reference/android/graphics/ColorFilter)` colorFilter, `[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect)` renderEffect) ` Create a[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect)that applies the color filter to the provided RenderEffect                                                                                                                                                                                                                                                                                       |
| ` static `[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect) | ` `[createColorFilterEffect](https://developer.android.com/reference/android/graphics/RenderEffect#createColorFilterEffect(android.graphics.ColorFilter))`(`[ColorFilter](https://developer.android.com/reference/android/graphics/ColorFilter)` colorFilter) ` Create a[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect)that applies the color filter to the contents of the[RenderNode](https://developer.android.com/reference/android/graphics/RenderNode)that this RenderEffect is installed on                                                                                                                                                                                                                                                                                                             |
| ` static `[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect) | ` `[createOffsetEffect](https://developer.android.com/reference/android/graphics/RenderEffect#createOffsetEffect(float,%20float,%20android.graphics.RenderEffect))`(float offsetX, float offsetY, `[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect)` input) ` Create a[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect)instance with the provided x and y offset                                                                                                                                                                                                                                                                                                                                                                                                            |
| ` static `[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect) | ` `[createOffsetEffect](https://developer.android.com/reference/android/graphics/RenderEffect#createOffsetEffect(float,%20float))`(float offsetX, float offsetY) ` Create a[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect)instance that will offset the drawing content by the provided x and y offset.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| ` static `[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect) | ` `[createRuntimeShaderEffect](https://developer.android.com/reference/android/graphics/RenderEffect#createRuntimeShaderEffect(android.graphics.RuntimeShader,%20java.lang.String))`(`[RuntimeShader](https://developer.android.com/reference/android/graphics/RuntimeShader)` shader, `[String](https://developer.android.com/reference/java/lang/String)` uniformShaderName) ` Create a[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect)that executes the provided[RuntimeShader](https://developer.android.com/reference/android/graphics/RuntimeShader)and passes the contents of the[RenderNode](https://developer.android.com/reference/android/graphics/RenderNode)that this RenderEffect is installed on as an input to the shader.                                                                      |
| ` static `[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect) | ` `[createShaderEffect](https://developer.android.com/reference/android/graphics/RenderEffect#createShaderEffect(android.graphics.Shader))`(`[Shader](https://developer.android.com/reference/android/graphics/Shader)` shader) ` Create a[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect)that renders the contents of the input[Shader](https://developer.android.com/reference/android/graphics/Shader).                                                                                                                                                                                                                                                                                                                                                                                                      |

| ### Inherited methods |
|-----------------------|---|
| From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object)` ` |--------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object)          | ` `[clone](https://developer.android.com/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object.                                                                                                                                                      | | ` boolean`                                                                     | ` `[equals](https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` obj) ` Indicates whether some other object is "equal to" this one.                                           | | ` void`                                                                        | ` `[finalize](https://developer.android.com/reference/java/lang/Object#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.                                                          | | ` final `[Class](https://developer.android.com/reference/java/lang/Class)`<?>` | ` `[getClass](https://developer.android.com/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this`Object`.                                                                                                                                                | | ` int`                                                                         | ` `[hashCode](https://developer.android.com/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object.                                                                                                                                                 | | ` final void`                                                                  | ` `[notify](https://developer.android.com/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor.                                                                                                                            | | ` final void`                                                                  | ` `[notifyAll](https://developer.android.com/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor.                                                                                                                         | | ` `[String](https://developer.android.com/reference/java/lang/String)          | ` `[toString](https://developer.android.com/reference/java/lang/Object#toString())`() ` Returns a string representation of the object.                                                                                                                                            | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long,%20int))`(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed. | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long))`(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed.                   | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*.                                                                                             | ||

## Public methods

### createBitmapEffect

Added in[API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static RenderEffect createBitmapEffect (Bitmap bitmap)
```

Create a[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect)that renders the contents of the input[Bitmap](https://developer.android.com/reference/android/graphics/Bitmap). This is useful to create an input for other[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect)types such as[RenderEffect.createBlurEffect(float, float, RenderEffect, TileMode)](https://developer.android.com/reference/android/graphics/RenderEffect#createBlurEffect(float,%20float,%20android.graphics.RenderEffect,%20android.graphics.Shader.TileMode))or[RenderEffect.createColorFilterEffect(ColorFilter, RenderEffect)](https://developer.android.com/reference/android/graphics/RenderEffect#createColorFilterEffect(android.graphics.ColorFilter,%20android.graphics.RenderEffect))

<br />

|                                                                                         Parameters                                                                                         ||
|----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `bitmap` | `Bitmap`: The source bitmap to be rendered by the created[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect)This value cannot be`null`. <br /> |

|                                                          Returns                                                          ||
|---------------------------------------------------------------------------------------|------------------------------------|
| [RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect) | This value cannot be`null`. <br /> |

### createBitmapEffect

Added in[API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static RenderEffect createBitmapEffect (Bitmap bitmap, 
                Rect src, 
                Rect dst)
```

Create a[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect)that renders the contents of the input[Bitmap](https://developer.android.com/reference/android/graphics/Bitmap). This is useful to create an input for other[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect)types such as[RenderEffect.createBlurEffect(float, float, RenderEffect, TileMode)](https://developer.android.com/reference/android/graphics/RenderEffect#createBlurEffect(float,%20float,%20android.graphics.RenderEffect,%20android.graphics.Shader.TileMode))or[RenderEffect.createColorFilterEffect(ColorFilter, RenderEffect)](https://developer.android.com/reference/android/graphics/RenderEffect#createColorFilterEffect(android.graphics.ColorFilter,%20android.graphics.RenderEffect))

<br />

|                                                                                                                                      Parameters                                                                                                                                      ||
|----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `bitmap` | `Bitmap`: The source bitmap to be rendered by the created[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect)This value cannot be`null`. <br />                                                                                           |
| `src`    | `Rect`: Optional subset of the bitmap to be part of the rendered output. If null is provided, the entire bitmap bounds are used. <br />                                                                                                                                    |
| `dst`    | `Rect`: Bounds of the destination which the bitmap is translated and scaled to be drawn into within the bounds of the[RenderNode](https://developer.android.com/reference/android/graphics/RenderNode)this RenderEffect is installed on This value cannot be`null`. <br /> |

|                                                          Returns                                                          ||
|---------------------------------------------------------------------------------------|------------------------------------|
| [RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect) | This value cannot be`null`. <br /> |

### createBlendModeEffect

Added in[API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static RenderEffect createBlendModeEffect (RenderEffect dst, 
                RenderEffect src, 
                BlendMode blendMode)
```

Create a[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect)that is a composition of 2 other[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect)instances combined by the specified[BlendMode](https://developer.android.com/reference/android/graphics/BlendMode)

<br />

|                                                                                                                                   Parameters                                                                                                                                   ||
|-------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `dst`       | `RenderEffect`: The Dst pixels used in blending This value cannot be`null`. <br />                                                                                                                                                                                |
| `src`       | `RenderEffect`: The Src pixels used in blending This value cannot be`null`. <br />                                                                                                                                                                                |
| `blendMode` | `BlendMode`: The[BlendMode](https://developer.android.com/reference/android/graphics/BlendMode)to be used to combine colors from the two[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect)s This value cannot be`null`. <br /> |

|                                                          Returns                                                          ||
|---------------------------------------------------------------------------------------|------------------------------------|
| [RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect) | This value cannot be`null`. <br /> |

### createBlurEffect

Added in[API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static RenderEffect createBlurEffect (float radiusX, 
                float radiusY, 
                Shader.TileMode edgeTreatment)
```

Create a[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect)that blurs the contents of the[RenderNode](https://developer.android.com/reference/android/graphics/RenderNode)that this RenderEffect is installed on with the specified radius along the x and y axis.

<br />

|                                                             Parameters                                                              ||
|-----------------|--------------------------------------------------------------------------------------------------------------------|
| `radiusX`       | `float`: Radius of blur along the X axis <br />                                                                    |
| `radiusY`       | `float`: Radius of blur along the Y axis <br />                                                                    |
| `edgeTreatment` | `Shader.TileMode`: Policy for how to blur content near edges of the blur kernel This value cannot be`null`. <br /> |

|                                                          Returns                                                          ||
|---------------------------------------------------------------------------------------|------------------------------------|
| [RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect) | This value cannot be`null`. <br /> |

### createBlurEffect

Added in[API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static RenderEffect createBlurEffect (float radiusX, 
                float radiusY, 
                RenderEffect inputEffect, 
                Shader.TileMode edgeTreatment)
```

Create a[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect)that blurs the contents of the optional input RenderEffect with the specified radius along the x and y axis. If no input RenderEffect is provided then all drawing commands issued with a[RenderNode](https://developer.android.com/reference/android/graphics/RenderNode)that this RenderEffect is installed in will be blurred

<br />

|                                                                                                         Parameters                                                                                                          ||
|-----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `radiusX`       | `float`: Radius of blur along the X axis <br />                                                                                                                                                            |
| `radiusY`       | `float`: Radius of blur along the Y axis <br />                                                                                                                                                            |
| `inputEffect`   | `RenderEffect`: Input RenderEffect that provides the content to be blurred, can be null to indicate that the drawing commands on the RenderNode are to be blurred instead of the input RenderEffect <br /> |
| `edgeTreatment` | `Shader.TileMode`: Policy for how to blur content near edges of the blur kernel This value cannot be`null`. <br />                                                                                         |

|                                                          Returns                                                          ||
|---------------------------------------------------------------------------------------|------------------------------------|
| [RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect) | This value cannot be`null`. <br /> |

### createChainEffect

Added in[API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static RenderEffect createChainEffect (RenderEffect outer, 
                RenderEffect inner)
```

Create a[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect)that composes 'inner' with 'outer', such that the results of 'inner' are treated as the source bitmap passed to 'outer', i.e.  

     result = outer(inner(source))
     
     
Consumers should favor explicit chaining of[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect)instances at creation time rather than using chain effect. Chain effects are useful for situations where the input or output are provided from elsewhere and the input or output[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect)need to be changed.

<br />

<br />

|                                                                                        Parameters                                                                                        ||
|---------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `outer` | `RenderEffect`:[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect)that consumes the output of as its input This value cannot be`null`. <br /> |
| `inner` | `RenderEffect`:[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect)that is consumed as input by This value cannot be`null`. <br />             |

|                                                          Returns                                                          ||
|---------------------------------------------------------------------------------------|------------------------------------|
| [RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect) | This value cannot be`null`. <br /> |

### createColorFilterEffect

Added in[API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static RenderEffect createColorFilterEffect (ColorFilter colorFilter, 
                RenderEffect renderEffect)
```

Create a[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect)that applies the color filter to the provided RenderEffect

<br />

|                                                                                           Parameters                                                                                           ||
|----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `colorFilter`  | `ColorFilter`: ColorFilter applied to the content in the input RenderEffect This value cannot be`null`. <br />                                                                 |
| `renderEffect` | `RenderEffect`: Source to be transformed by the specified[ColorFilter](https://developer.android.com/reference/android/graphics/ColorFilter)This value cannot be`null`. <br /> |

|                                                          Returns                                                          ||
|---------------------------------------------------------------------------------------|------------------------------------|
| [RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect) | This value cannot be`null`. <br /> |

### createColorFilterEffect

Added in[API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static RenderEffect createColorFilterEffect (ColorFilter colorFilter)
```

Create a[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect)that applies the color filter to the contents of the[RenderNode](https://developer.android.com/reference/android/graphics/RenderNode)that this RenderEffect is installed on

<br />

|                                                          Parameters                                                           ||
|---------------|----------------------------------------------------------------------------------------------------------------|
| `colorFilter` | `ColorFilter`: ColorFilter applied to the content in the input RenderEffect This value cannot be`null`. <br /> |

|                                                          Returns                                                          ||
|---------------------------------------------------------------------------------------|------------------------------------|
| [RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect) | This value cannot be`null`. <br /> |

### createOffsetEffect

Added in[API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static RenderEffect createOffsetEffect (float offsetX, 
                float offsetY, 
                RenderEffect input)
```

Create a[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect)instance with the provided x and y offset

<br />

|                                                         Parameters                                                          ||
|-----------|------------------------------------------------------------------------------------------------------------------|
| `offsetX` | `float`: offset along the x axis in pixels <br />                                                                |
| `offsetY` | `float`: offset along the y axis in pixels <br />                                                                |
| `input`   | `RenderEffect`: target RenderEffect used to render in the offset coordinates. This value cannot be`null`. <br /> |

|                                                          Returns                                                          ||
|---------------------------------------------------------------------------------------|------------------------------------|
| [RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect) | This value cannot be`null`. <br /> |

### createOffsetEffect

Added in[API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static RenderEffect createOffsetEffect (float offsetX, 
                float offsetY)
```

Create a[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect)instance that will offset the drawing content by the provided x and y offset.

<br />

|                          Parameters                          ||
|-----------|---------------------------------------------------|
| `offsetX` | `float`: offset along the x axis in pixels <br /> |
| `offsetY` | `float`: offset along the y axis in pixels <br /> |

|                                                          Returns                                                          ||
|---------------------------------------------------------------------------------------|------------------------------------|
| [RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect) | This value cannot be`null`. <br /> |

### createRuntimeShaderEffect

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static RenderEffect createRuntimeShaderEffect (RuntimeShader shader, 
                String uniformShaderName)
```

Create a[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect)that executes the provided[RuntimeShader](https://developer.android.com/reference/android/graphics/RuntimeShader)and passes the contents of the[RenderNode](https://developer.android.com/reference/android/graphics/RenderNode)that this RenderEffect is installed on as an input to the shader.

<br />

|                                                                                   Parameters                                                                                    ||
|---------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `shader`            | `RuntimeShader`: the runtime shader that will bind the inputShaderName to the RenderEffect input This value cannot be`null`. <br />                        |
| `uniformShaderName` | `String`: the uniform name defined in the RuntimeShader's program to which the contents of the RenderNode will be bound This value cannot be`null`. <br /> |

|                                                          Returns                                                          ||
|---------------------------------------------------------------------------------------|------------------------------------|
| [RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect) | This value cannot be`null`. <br /> |

### createShaderEffect

Added in[API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static RenderEffect createShaderEffect (Shader shader)
```

Create a[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect)that renders the contents of the input[Shader](https://developer.android.com/reference/android/graphics/Shader). This is useful to create an input for other[RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect)types such as[RenderEffect.createBlurEffect(float, float, RenderEffect, TileMode)](https://developer.android.com/reference/android/graphics/RenderEffect#createBlurEffect(float,%20float,%20android.graphics.RenderEffect,%20android.graphics.Shader.TileMode))[RenderEffect.createBlurEffect(float, float, RenderEffect, TileMode)](https://developer.android.com/reference/android/graphics/RenderEffect#createBlurEffect(float,%20float,%20android.graphics.RenderEffect,%20android.graphics.Shader.TileMode))or[RenderEffect.createColorFilterEffect(ColorFilter, RenderEffect)](https://developer.android.com/reference/android/graphics/RenderEffect#createColorFilterEffect(android.graphics.ColorFilter,%20android.graphics.RenderEffect)).

<br />

|                       Parameters                       ||
|----------|----------------------------------------------|
| `shader` | `Shader`: This value cannot be`null`. <br /> |

|                                                          Returns                                                          ||
|---------------------------------------------------------------------------------------|------------------------------------|
| [RenderEffect](https://developer.android.com/reference/android/graphics/RenderEffect) | This value cannot be`null`. <br /> |