to top
Android APIs
public class

BitmapShader

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

Class Overview

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.
[Expand]
Inherited Methods
From class android.graphics.Shader
From class java.lang.Object

Public Constructors

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

Added in API level 1

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

Parameters
bitmap The bitmap to use inside the shader
tileX The tiling mode for x to draw the bitmap in.
tileY The tiling mode for y to draw the bitmap in.