Lines Matching defs:paint
201 * Returns the paint used to render this drawable.
486 final Paint paint = state.mPaint;
491 paint.setShader(null);
493 paint.setShader(new BitmapShader(bitmap,
511 if (mTintFilter != null && paint.getColorFilter() == null) {
512 paint.setColorFilter(mTintFilter);
519 final Shader shader = paint.getShader();
529 canvas.drawBitmap(bitmap, null, mDstRect, paint);
535 updateShaderMatrix(bitmap, paint, shader, needMirroring);
536 canvas.drawRect(mDstRect, paint);
540 paint.setColorFilter(null);
544 paint.setAlpha(restoreAlpha);
549 * Updates the {@code paint}'s shader matrix to be consistent with the
553 * @param paint the paint used to draw the bitmap
554 * @param shader the shader to set on the paint
557 private void updateShaderMatrix(@NonNull Bitmap bitmap, @NonNull Paint paint,
583 paint.setShader(shader);
847 final Paint paint = mBitmapState.mPaint;
848 paint.setAntiAlias(a.getBoolean(
849 R.styleable.BitmapDrawable_antialias, paint.isAntiAlias()));
850 paint.setFilterBitmap(a.getBoolean(
851 R.styleable.BitmapDrawable_filter, paint.isFilterBitmap()));
852 paint.setDither(a.getBoolean(R.styleable.BitmapDrawable_dither, paint.isDither()));