Java tutorial
//package com.java2s; import android.graphics.Bitmap; import android.graphics.BitmapShader; import android.graphics.Shader; public class Main { public static Shader createShader(Bitmap paramBitmap) { return new BitmapShader(paramBitmap, Shader.TileMode.CLAMP, Shader.TileMode.CLAMP); } }