안드로이드
안드로이드 블러링 효과(BlurMaskFilter) 동작오류 시 수정방법
dreamstalker
2017. 5. 3. 13:30
블러링 - 이미지를 뿌옇게 효과를 주는 것
스타일 종류 : NORMAL, INNER, OUTER, SOLID
Paint paint = new Paint();
paint.setColor(Color.GRAY);
BlurMaskFilter bMask;
BlurMaskFilter 가 동작하지 않을 때 수정 방법.
Here is the official word from the Android graphics team: "BlurMaskFilter is not supported with hardware acceleration." (As of July 10, 2012)
It renders correctly if you set android:hardwareAccelerated="false" on your Activity in AndroidManifest.xml.
hardwareAccelerated: API 14부터 기본값으로 true로 설정 됨.
참고: http://developer.android.com/guide/topics/graphics/hardware-accel.html#unsupported
안드로이드 개발자 사이트의 내용을 잘 읽어 보고
아래 처럼 Application이나 Activity 레벨 중에서 선택하여 추가하면 됨.