Smoother blur rendering.
This commit is contained in:
parent
18e3fb6609
commit
d86d625bcc
1 changed files with 4 additions and 1 deletions
|
@ -129,7 +129,10 @@ final class UriGlideRenderer implements Renderer {
|
|||
if (child.getZOrder() == EditorModel.Z_MASK) {
|
||||
renderMask = true;
|
||||
if (blurPaint == null) {
|
||||
blurPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
|
||||
blurPaint = new Paint();
|
||||
blurPaint.setAntiAlias(true);
|
||||
blurPaint.setFilterBitmap(true);
|
||||
blurPaint.setDither(true);
|
||||
}
|
||||
blurPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.DST_OUT));
|
||||
rendererContext.setMaskPaint(blurPaint);
|
||||
|
|
Loading…
Add table
Reference in a new issue