Lines Matching refs:bitmap

39  * A Drawable that wraps a bitmap and can be tiled, stretched, or aligned. You can create a
42 * <p>It can be defined in an XML file with the <code>&lt;bitmap></code> element. For more
47 * transformation of raw bitmap graphics, and should be used when drawing to a
96 * Create drawable from a bitmap, not dealing with density.
101 public BitmapDrawable(Bitmap bitmap) {
102 this(new BitmapState(bitmap), null);
106 * Create drawable from a bitmap, setting initial target density based on
109 public BitmapDrawable(Resources res, Bitmap bitmap) {
110 this(new BitmapState(bitmap), res);
115 * Create a drawable by opening a given file path and decoding the bitmap.
128 * Create a drawable by opening a given file path and decoding the bitmap.
140 * Create a drawable by decoding a bitmap from the given input stream.
153 * Create a drawable by decoding a bitmap from the given input stream.
172 * Returns the bitmap used by this drawable to render. May be null.
183 private void setBitmap(Bitmap bitmap) {
184 if (bitmap != mBitmap) {
185 mBitmap = bitmap;
186 if (bitmap != null) {
239 /** Get the gravity used to position/stretch the bitmap within its bounds.
241 * @return the gravity applied to the bitmap
247 /** Set the gravity used to position/stretch the bitmap within its bounds.
261 * the edges of the bitmap only so it applies only when the drawable is rotated.
263 * @param aa True if the bitmap should be anti-aliased, false otherwise.
285 * @return {@link Shader.TileMode#CLAMP} if the bitmap does not repeat,
295 * @return {@link Shader.TileMode#CLAMP} if the bitmap does not repeat,
304 * does not repeat its bitmap. Using {@link Shader.TileMode#REPEAT} or
305 * {@link Shader.TileMode#MIRROR} the bitmap can be repeated (or tiled) if the bitmap
319 * does not repeat its bitmap. Using {@link Shader.TileMode#REPEAT} or
320 * {@link Shader.TileMode#MIRROR} the bitmap can be repeated (or tiled) if the bitmap
334 * does not repeat its bitmap. Using {@link Shader.TileMode#REPEAT} or
335 * {@link Shader.TileMode#MIRROR} the bitmap can be repeated (or tiled) if the bitmap
367 Bitmap bitmap = mBitmap;
368 if (bitmap != null) {
377 state.mPaint.setShader(new BitmapShader(bitmap,
393 canvas.drawBitmap(bitmap, null, mDstRect, state.mPaint);
444 ": <bitmap> requires a valid src attribute");
446 final Bitmap bitmap = BitmapFactory.decodeResource(r, id);
447 if (bitmap == null) {
449 ": <bitmap> requires a valid src attribute");
451 mBitmapState.mBitmap = bitmap;
452 setBitmap(bitmap);
517 BitmapState(Bitmap bitmap) {
518 mBitmap = bitmap;