FileDocCategorySizeDatePackage
BitmapShader.javaAPI DocAndroid 1.5 API1542Wed May 06 22:42:00 BST 2009android.graphics

BitmapShader

public class BitmapShader extends Shader

Fields Summary
private Bitmap
mBitmap
Constructors Summary
public BitmapShader(Bitmap bitmap, TileMode tileX, TileMode tileY)
Call this to create a new shader that will draw with a bitmap.

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

        mBitmap = bitmap;
        native_instance = nativeCreate(bitmap.ni(),
                                       tileX.nativeInt, tileY.nativeInt);
    
Methods Summary
private static native intnativeCreate(int native_bitmap, int shaderTileModeX, int shaderTileModeY)