close
The Wayback Machine - https://web.archive.org/web/20160817092235/https://developer.android.com/reference/android/graphics/BitmapShader.html
Skip to content

Most visited

Recently visited

navigation
Added in API level 1

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

BERJAYAFrom class android.graphics.Shader
BERJAYAFrom class java.lang.Object

Public constructors

BitmapShader

Added in API level 1
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
tileX Shader.TileMode: The tiling mode for x to draw the bitmap in.
tileY Shader.TileMode: The tiling mode for y to draw the bitmap in.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.