Home
last modified time | relevance | path

Searched refs:STRIDE (Results 1 – 3 of 3) sorted by relevance

/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DCreateBitmap.java36 private static final int STRIDE = 64; // must be >= WIDTH field in CreateBitmap
39 int[] colors = new int[STRIDE * HEIGHT]; in createColors()
46 colors[y * STRIDE + x] = (a << 24) | (r << 16) | (g << 8) | b; 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()
92 mBitmaps[i].setPixels(colors, 0, STRIDE, 0, 0, WIDTH, HEIGHT); in SampleView()
118 canvas.drawBitmap(mColors, 0, STRIDE, 0, 0, WIDTH, HEIGHT, in onDraw()
121 canvas.drawBitmap(mColors, 0, STRIDE, 0, 0, WIDTH, HEIGHT, in onDraw()
DPurgeableBitmapView.java47 private static final int STRIDE = 320; // must be >= WIDTH field in PurgeableBitmapView
59 Bitmap src = Bitmap.createBitmap(colors, 0, STRIDE, WIDTH, HEIGHT, in PurgeableBitmapView()
68 int[] colors = new int[STRIDE * HEIGHT]; in createColors()
75 colors[y * STRIDE + x] = (a << 24) | (r << 16) | (g << 8) | b; in createColors()
DMeasureText.java34 private static final int STRIDE = 64; // must be >= WIDTH field in MeasureText
37 int[] colors = new int[STRIDE * HEIGHT]; in createColors()
44 colors[y * STRIDE + x] = (a << 24) | (r << 16) | (g << 8) | b; in createColors()