Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
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.