/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
D | ColorMatrixSample.java | 36 private Bitmap mBitmap; field in ColorMatrixSample.SampleView 42 mBitmap = BitmapFactory.decodeResource(context.getResources(), in SampleView() 93 canvas.drawBitmap(mBitmap, x, y, paint); in onDraw() 107 canvas.drawBitmap(mBitmap, x + mBitmap.getWidth() + 10, y, paint); in onDraw() 111 canvas.drawBitmap(mBitmap, x, y + mBitmap.getHeight() + 10, paint); in onDraw() 115 canvas.drawBitmap(mBitmap, x, y + 2*(mBitmap.getHeight() + 10), in onDraw()
|
D | AlphaBitmap.java | 37 private Bitmap mBitmap; field in AlphaBitmap.SampleView 65 mBitmap = BitmapFactory.decodeStream(is); in SampleView() 66 mBitmap2 = mBitmap.extractAlpha(); in SampleView() 82 canvas.drawBitmap(mBitmap, 10, y, p); in onDraw() 83 y += mBitmap.getHeight() + 10; in onDraw()
|
D | TouchPaint.java | 234 private Bitmap mBitmap; field in TouchPaint.PaintView 285 if (mBitmap != null) { in text() 286 final int width = mBitmap.getWidth(); in text() 287 final int height = mBitmap.getHeight(); in text() 311 int curW = mBitmap != null ? mBitmap.getWidth() : 0; in onSizeChanged() 312 int curH = mBitmap != null ? mBitmap.getHeight() : 0; in onSizeChanged() 323 if (mBitmap != null) { in onSizeChanged() 324 newCanvas.drawBitmap(mBitmap, 0, 0, null); in onSizeChanged() 326 mBitmap = newBitmap; in onSizeChanged() 333 if (mBitmap != null) { in onDraw() [all …]
|
D | BitmapMesh.java | 39 private final Bitmap mBitmap; field in BitmapMesh.SampleView 55 mBitmap = BitmapFactory.decodeResource(getResources(), in SampleView() 58 float w = mBitmap.getWidth(); in SampleView() 59 float h = mBitmap.getHeight(); in SampleView() 80 canvas.drawBitmapMesh(mBitmap, WIDTH, HEIGHT, mVerts, 0, in onDraw()
|
D | PurgeableBitmapView.java | 41 private Bitmap mBitmap; field in PurgeableBitmapView 85 mBitmap = mBitmapArray[mDecodingCount]; in update() 104 canvas.drawBitmap(mBitmap, 0, 0, null); in onDraw()
|
D | FingerPaint.java | 63 private Bitmap mBitmap; field in FingerPaint.MyView 78 mBitmap = Bitmap.createBitmap(w, h, Bitmap.Config.ARGB_8888); in onSizeChanged() 79 mCanvas = new Canvas(mBitmap); in onSizeChanged() 86 canvas.drawBitmap(mBitmap, 0, 0, mBitmapPaint); in onDraw()
|
D | BitmapDecode.java | 39 private Bitmap mBitmap; field in BitmapDecode.SampleView 84 mBitmap = bm; in SampleView() 120 canvas.drawBitmap(mBitmap, 10, 10, null); in onDraw()
|
D | DensityActivity.java | 197 private Bitmap mBitmap; field in DensityActivity.ScaledBitmapView 201 mBitmap = bitmap; in ScaledBitmapView() 209 mBitmap.getScaledWidth(metrics), in onMeasure() 210 mBitmap.getScaledHeight(metrics)); in onMeasure() 217 canvas.drawBitmap(mBitmap, 0.0f, 0.0f, null); in onDraw()
|
/development/samples/devbytes/animation/Bouncer/src/com/example/android/bouncer/ |
D | Bouncer1.java | 45 Bitmap mBitmap; field in Bouncer1.MyView 84 mBitmap = BitmapFactory.decodeResource(getResources(), R.drawable.electricsheep); in setupShape() 85 mShapeW = mBitmap.getWidth(); in setupShape() 86 mShapeH = mBitmap.getHeight(); in setupShape() 97 mShapeX = (w - mBitmap.getWidth()) / 2; in onSizeChanged() 103 canvas.drawBitmap(mBitmap, mShapeX, mShapeY, paint); in onDraw()
|
D | Bouncer3.java | 46 Bitmap mBitmap; field in Bouncer3.MyView 85 mBitmap = BitmapFactory.decodeResource(getResources(), R.drawable.electricsheep); in setupShape() 86 mShapeW = mBitmap.getWidth(); in setupShape() 87 mShapeH = mBitmap.getHeight(); in setupShape() 98 mShapeX = (w - mBitmap.getWidth()) / 2; in onSizeChanged() 104 canvas.drawBitmap(mBitmap, mShapeX, mShapeY, paint); in onDraw()
|
D | Bouncer.java | 54 Bitmap mBitmap; field in Bouncer.MyView 75 mBitmap = BitmapFactory.decodeResource(getResources(), in setupShape() 77 mShapeW = mBitmap.getWidth(); in setupShape() 78 mShapeH = mBitmap.getHeight(); in setupShape() 115 mShapeX = (w - mBitmap.getWidth()) / 2; in onSizeChanged() 121 canvas.drawBitmap(mBitmap, mShapeX, mShapeY, paint); in onDraw()
|
D | Bouncer2.java | 46 Bitmap mBitmap; field in Bouncer2.MyView 85 mBitmap = BitmapFactory.decodeResource(getResources(), R.drawable.electricsheep); in setupShape() 86 mShapeW = mBitmap.getWidth(); in setupShape() 87 mShapeH = mBitmap.getHeight(); in setupShape() 98 mShapeX = (w - mBitmap.getWidth()) / 2; in onSizeChanged() 104 canvas.drawBitmap(mBitmap, mShapeX, mShapeY, paint); in onDraw()
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/ |
D | LabelMaker.java | 129 mBitmap = Bitmap.createBitmap(mStrikeWidth, mStrikeHeight, config); in beginAdding() 130 mCanvas = new Canvas(mBitmap); in beginAdding() 131 mBitmap.eraseColor(0); in beginAdding() 266 GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, mBitmap, 0); in endAdding() 268 mBitmap.recycle(); in endAdding() 269 mBitmap = null; in endAdding() 393 private Bitmap mBitmap; field in LabelMaker
|
/development/samples/HoneycombGallery/src/com/example/android/hcgallery/ |
D | ContentFragment.java | 62 private Bitmap mBitmap = null; field in ContentFragment 284 if (mBitmap != null) { in updateContentAndRecycleBitmap() 288 mBitmap.recycle(); in updateContentAndRecycleBitmap() 292 mBitmap = Directory.getCategory(category).getEntry(position) in updateContentAndRecycleBitmap() 294 ((ImageView) getView().findViewById(R.id.image)).setImageBitmap(mBitmap); in updateContentAndRecycleBitmap() 330 if (!mBitmap.compress(Bitmap.CompressFormat.JPEG, 60, fo)) { in shareCurrentPhoto()
|
/development/samples/AccelerometerPlay/src/com/example/android/accelerometerplay/ |
D | AccelerometerPlayActivity.java | 128 private Bitmap mBitmap; field in AccelerometerPlayActivity.SimulationView 359 mBitmap = Bitmap.createScaledBitmap(ball, dstWidth, dstHeight, true); in SimulationView() 371 mXOrigin = (w - mBitmap.getWidth()) * 0.5f; in onSizeChanged() 372 mYOrigin = (h - mBitmap.getHeight()) * 0.5f; in onSizeChanged() 438 final Bitmap bitmap = mBitmap; in onDraw()
|