Code example for PaintFlagsDrawFilter

0
 
	@Override 
	public void onAttachedToWindow() { 
		compassArrow = BitmapFactory.decodeResource(context.getResources(), arrowSkin);
 
		setfil = new PaintFlagsDrawFilter(0, Paint.FILTER_BITMAP_FLAG);
		remfil = new PaintFlagsDrawFilter(Paint.FILTER_BITMAP_FLAG, 0);
	} 
 
	@Override 
	public void onDetachedFromWindow() { 
		if (compassArrow != null) {
			compassArrow.recycle();
			compassArrow = null;
		} 
	} 
	 
	public void setContent(Base baseIn, Double cacheLatIn, Double cacheLonIn) {
		base = baseIn;
		cacheLat = cacheLatIn;
Contextual code suggestions in your IDE  Get Codota for Java