Drawable setFilterBitmap - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Drawable setFilterBitmap method.

This code example shows how to use the following methods:setDither, setFilterBitmap
                view.setImageBitmap(b);
     
                mBitmap = b;
     
                final Drawable drawable = view.getDrawable();
                drawable.setFilterBitmap(true);
                drawable.setDither(true);
 
                view.postInvalidate();
 
                mLoader = null;
            } else { 
               b.recycle(); 
            } 
        } 
 
        void cancel() { 
            mOptions.requestCancelDecode();
            super.cancel(true); 
        } 
7
CodeRank
This code example shows how to use the following methods:setFilterBitmap
        mDrawable.setDither(dither);
    } 
 
    @Override 
    public void setFilterBitmap(boolean filter) {
        mDrawable.setFilterBitmap(filter);
    } 
 
    @Override 
    public void setAlpha(int alpha) {
        mDrawable.setAlpha(alpha);
    } 
 
    @Override 
    public void setColorFilter(ColorFilter cf) {
        mDrawable.setColorFilter(cf);
    } 
 
    @Override 
    public boolean isStateful() { 
6
CodeRank
This code example shows how to use the following methods:setCallback, setFilterBitmap
		rotateState.mPivotY = pivotY;
 
		init(); 
 
		if ( drawable != null ) {
			drawable.setCallback( this );
		} 
	} 
 
	/** 
	 * Instantiates a new animated rotate drawable. 
	 *  
	 * @param rotateState 
	 *           the rotate state 
	 * @param res 
	 *           the res 
	 */ 
	private AnimatedRotateDrawable( AnimatedRotateState rotateState, Resources res ) {
		mState = new AnimatedRotateState( rotateState, this, res );
		init(); 

6
CodeRank
This code example shows how to use the following methods:setFilterBitmap
    } 
     
    @Override 
    public void setFilterBitmap(boolean filter) {
        if (mProxy != null) {
            mProxy.setFilterBitmap(filter);
        } 
    } 
     
    @Override 
    public void setDither(boolean dither) {
        if (mProxy != null) {
            mProxy.setDither(dither);
        } 
    } 
     
    @Override 
    public void setColorFilter(ColorFilter colorFilter) {
        if (mProxy != null) {
            mProxy.setColorFilter(colorFilter);
6
CodeRank
This code example shows how to use the following methods:setFilterBitmap
    } 
 
    @Override 
    public void setFilterBitmap(boolean filter) {
        if (mProxy != null) {
            mProxy.setFilterBitmap(filter);
        } 
    } 
 
    @Override 
    public void setDither(boolean dither) {
        if (mProxy != null) {
            mProxy.setDither(dither);
        } 
    } 
 
    @Override 
    public void setColorFilter(ColorFilter colorFilter) {
        if (mProxy != null) {
            mProxy.setColorFilter(colorFilter);
5
CodeRank
This code example shows how to use the following methods:setFilterBitmap
		super.setBounds( bounds );
	} 
 
	@Override 
	public void setFilterBitmap( boolean filter ) {
		mDrawable.setFilterBitmap( filter );
	} 
 
	@Override 
	public boolean setVisible( boolean visible, boolean restart ) {
		return mDrawable.setVisible( visible, restart );
	} 
 
	@Override 
	public void setDither( boolean dither ) {
		mDrawable.setDither( dither );
	} 
 
	@Override 
	public void setColorFilter( int color, Mode mode ) {
5
CodeRank
This code example shows how to use the following methods:setDither, setFilterBitmap
				view.setImageBitmap(b);
 
				bitmap = b;
 
				final Drawable drawable = view.getDrawable();
				drawable.setFilterBitmap(true);
				drawable.setDither(true);
 
				view.postInvalidate();
 
				wallpaperLoader = null;
			} else { 
				b.recycle();
			} 
		} 
 
		void cancel() { 
			options.requestCancelDecode();
			super.cancel(true); 
		} 
5
CodeRank
This code example shows how to use the following methods:setFilterBitmap
            mWrapped.setDither(dither);
        } 
 
        @Override 
        public void setFilterBitmap(boolean filter) {
            mWrapped.setFilterBitmap(filter);
        } 
 
        @Override 
        public void setAlpha(int alpha) {
            mWrapped.setAlpha(alpha);
        } 
 
        @Override 
        public void setColorFilter(ColorFilter cf) {
            mWrapped.setColorFilter(cf);
        } 
 
        @Override 
        public void setColorFilter(int color, PorterDuff.Mode mode) {
5
CodeRank
This code example shows how to use the following methods:setFilterBitmap
            mWrapped.setDither(dither);
        } 
 
        @Override 
        public void setFilterBitmap(boolean filter) {
            mWrapped.setFilterBitmap(filter);
        } 
 
        @Override 
        public void setAlpha(int alpha) {
            mWrapped.setAlpha(alpha);
        } 
 
        @Override 
        public void setColorFilter(ColorFilter cf) {
            mWrapped.setColorFilter(cf);
        } 
 
        @Override 
        public void setColorFilter(int color, PorterDuff.Mode mode) {
5
CodeRank
This code example shows how to use the following methods:setDither, setFilterBitmap
                view.setImageBitmap(b);
     
                mBitmap = b;
     
                final Drawable drawable = view.getDrawable();
                drawable.setFilterBitmap(true);
                drawable.setDither(true);
 
                view.postInvalidate();
 
                mLoader = null;
            } else { 
               b.recycle(); 
            } 
        } 
 
        void cancel() { 
            mOptions.requestCancelDecode();
            super.cancel(true); 
        } 
5
CodeRank
setFilterBitmap Method Overview
Set to true to have the drawable filter its bitmap when scaled or rotated (for drawables that use bitmaps).
See Code Examples for other Android Drawable Methods: