# Print output for @column tags ?> BitmapShader - Android SDK | Android Developers

Most visited


Recently visited


BitmapShader

public class BitmapShader
extends Shader

java.lang.Object
   ↳ android.graphics.Shader
     ↳ android.graphics.BitmapShader


Shader used to draw a bitmap as a texture. The bitmap can be repeated or mirrored by setting the tiling mode.

Summary


Public constructors

BitmapShader(Bitmap bitmap, Shader.TileMode tileX, Shader.TileMode tileY)

Call this to create a new shader that will draw with a bitmap.

Inherited methods

Public constructors


BitmapShader

public BitmapShader (Bitmap bitmap, 
                Shader.TileMode tileX, 
                Shader.TileMode tileY)

Call this to create a new shader that will draw with a bitmap.

Parameters
bitmap Bitmap: The bitmap to use inside the shader This value cannot be null.

tileX Shader.TileMode: The tiling mode for x to draw the bitmap in. This value cannot be null.

tileY Shader.TileMode: The tiling mode for y to draw the bitmap in. This value cannot be null.

Browse this site in English?

You requested a page in English, but your language preference for this site is English.

Would you like to change your language preference and browse this site in English? If you want to change your language preference later, use the language menu at the bottom of each page.