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

? Examples
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.
No examples for this method.
Frequently called with: [Clear]
Portions of this page are reproduced from work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. The original page is available here.