Searched refs:HEIGHT (Results 1 – 6 of 6) sorted by relevance
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
D | CreateBitmap.java | 35 private static final int HEIGHT = 50; field in CreateBitmap 39 int[] colors = new int[STRIDE * HEIGHT]; in createColors() 40 for (int y = 0; y < HEIGHT; y++) { in createColors() 43 int g = y * 255 / (HEIGHT - 1); in createColors() 77 mBitmaps[0] = Bitmap.createBitmap(colors, 0, STRIDE, WIDTH, HEIGHT, in SampleView() 79 mBitmaps[1] = Bitmap.createBitmap(colors, 0, STRIDE, WIDTH, HEIGHT, in SampleView() 81 mBitmaps[2] = Bitmap.createBitmap(colors, 0, STRIDE, WIDTH, HEIGHT, in SampleView() 85 mBitmaps[3] = Bitmap.createBitmap(WIDTH, HEIGHT, in SampleView() 87 mBitmaps[4] = Bitmap.createBitmap(WIDTH, HEIGHT, in SampleView() 89 mBitmaps[5] = Bitmap.createBitmap(WIDTH, HEIGHT, in SampleView() [all …]
|
D | PurgeableBitmapView.java | 46 private static final int HEIGHT = 450; field in PurgeableBitmapView 59 Bitmap src = Bitmap.createBitmap(colors, 0, STRIDE, WIDTH, HEIGHT, in PurgeableBitmapView() 68 int[] colors = new int[STRIDE * HEIGHT]; in createColors() 69 for (int y = 0; y < HEIGHT; y++) { in createColors() 72 int g = y * 255 / (HEIGHT - 1); in createColors() 106 HEIGHT / 2, mPaint); in onDraw() local
|
D | BitmapMesh.java | 36 private static final int HEIGHT = 20; field in BitmapMesh.SampleView 37 private static final int COUNT = (WIDTH + 1) * (HEIGHT + 1); 62 for (int y = 0; y <= HEIGHT; y++) { in SampleView() 63 float fy = h * y / HEIGHT; in SampleView() 80 canvas.drawBitmapMesh(mBitmap, WIDTH, HEIGHT, mVerts, 0, in onDraw()
|
D | MeasureText.java | 33 private static final int HEIGHT = 50; field in MeasureText 37 int[] colors = new int[STRIDE * HEIGHT]; in createColors() 38 for (int y = 0; y < HEIGHT; y++) { in createColors() 41 int g = y * 255 / (HEIGHT - 1); in createColors()
|
D | ScaleToFit.java | 60 private static final int HEIGHT = 52; field in ScaleToFit.SampleView 61 private final RectF mDstR = new RectF(0, 0, WIDTH, HEIGHT); 115 canvas.drawText(sFitLabels[j], 0, HEIGHT*2/3, mLabelPaint); in onDraw()
|
/development/apps/NinePatchLab/src/com/android/ninepatch/ |
D | NinePatchLab.java | 130 final int HEIGHT = getHeight() - 2*MARGIN_Y; in onDraw() local 133 final int drHeight = (HEIGHT - (N - 1) * gapSize) / N; in onDraw()
|