Added in API level 1

TileMode


class TileMode
Shader.TileMode.CLAMP

Replicate the edge color if the shader draws outside of its original bounds.

Shader.TileMode.DECAL

Render the shader's image pixels only within its original bounds.

Shader.TileMode.MIRROR

Repeat the shader's image horizontally and vertically, alternating mirror images so that adjacent images always seam.

Shader.TileMode.REPEAT

Repeat the shader's image horizontally and vertically.

Summary

Enum values

Replicate the edge color if the shader draws outside of its original bounds.

Render the shader's image pixels only within its original bounds.

Repeat the shader's image horizontally and vertically, alternating mirror images so that adjacent images always seam.

Repeat the shader's image horizontally and vertically.

Enum values

CLAMP

Added in API level 1
enum val CLAMP : Shader.TileMode

Replicate the edge color if the shader draws outside of its original bounds.

DECAL

Added in API level 31
enum val DECAL : Shader.TileMode

Render the shader's image pixels only within its original bounds. If the shader draws outside of its original bounds, transparent black is drawn instead.

MIRROR

Added in API level 1
enum val MIRROR : Shader.TileMode

Repeat the shader's image horizontally and vertically, alternating mirror images so that adjacent images always seam.

REPEAT

Added in API level 1
enum val REPEAT : Shader.TileMode

Repeat the shader's image horizontally and vertically.

With the ability to publish rapidly to over 2 billion active Android devices, Google Play helps you grow a global audience for your apps and games and earn revenue.

Updated Nov 28, 2024

With the ability to publish rapidly to over 2 billion active Android devices, Google Play helps you grow a global audience for your apps and games and earn revenue.

Updated Jul 29, 2024

With the ability to publish rapidly to over 2 billion active Android devices, Google Play helps you grow a global audience for your apps and games and earn revenue.

Updated Dec 3, 2024