Set rounded corner from px

@return The current IconicsDrawable for chaining.
192456
@NonNull
    public IconicsDrawable roundedCornersPx(@Dimension(unit = PX) int sizePx) {
        mRoundedCornerRx = mRoundedCornerRy = sizePx;

        invalidateSelf();
        return this;
    }
193
public void setRoundedCorners(final boolean ROUNDED) {
        if (null == roundedCorners) {
            _roundedCorners = ROUNDED;
            fireTileEvent(REDRAW_EVENT);
        } else {
            roundedCorners.set(ROUNDED);
        }
    }
769912
@NonNull
    public IconicsDrawable iconOffsetYRes(@DimenRes int sizeResId) {
        return iconOffsetYPx(mContext.getResources().getDimensionPixelSize(sizeResId));
    }
940588
public Drawable decideIcon(Context ctx, int iconColor, boolean tint, int paddingDp) {
        Drawable icon = getIcon();

        if (mIIcon != null) {
            icon = new IconicsDrawable(ctx, mIIcon).color(iconColor).sizeDp(24).paddingDp(paddingDp);
        } else if (getIconRes() != -1) {
            icon = AppCompatResources.getDrawable(ctx, getIconRes());
        } else if (getUri() != null) {
            try {
                InputStream inputStream = ctx.getContentResolver().openInputStream(getUri());
                icon = Drawable.createFromStream(inputStream, getUri().toString());
            } catch (FileNotFoundException e) {
                //no need to handle this
            }
        }

        //if we got an icon AND we have auto tinting enabled AND it is no IIcon, tint it ;)
        if (icon != null && tint && mIIcon == null) {
            icon = icon.mutate();
            icon.setColorFilter(iconColor, PorterDuff.Mode.SRC_IN);
        }

        return icon;
    }
816690
public Rectangle2D getBoundingBox() {
		Dimension glyphDimension = getMetrics().getGlyphDimension(getNotationContext());
		if (isStemUp()) {
			return new Rectangle2D.Double(
				(int)(getBase().getX()),
                stemYEnd,
				getWidth(),
				getStemBeginPosition().getY()-stemYEnd+glyphDimension.getHeight()/2);
		}
		else {
			return new Rectangle2D.Double(
				(int)(getBase().getX()),
				getStemBeginPosition().getY()-glyphDimension.getHeight()/2,
				getWidth(),
				stemYEnd-getStemBeginPosition().getY()+1+glyphDimension.getHeight()/2);
		}
	}
711987
public ZoomableGraphicsContext getDocumentGraphicsContext2D() {
		if (this.documentGraphicsContext == null) {
			final CenteringTransform transform = new CenteringTransform(
					invertedAxisXProperty(),
					invertedAxisYProperty(),
					viewportBoundsProperty());
			this.documentGraphicsContext = new ZoomableGraphicsContext(
					getGraphicsContext2D(),
					scaleValueProperty(),
					documentBoundsProperty(),
					viewportBoundsProperty(),
					widthProperty(),
					heightProperty(),
					drawableElementBudgetProperty(),
					transform);
		}
		return this.documentGraphicsContext;
	}
584507
@NonNull
    public IconicsDrawable roundedCornersRxRes(@DimenRes int sizeResId) {
        return roundedCornersRxPx(mContext.getResources().getDimensionPixelSize(sizeResId));
    }
847194
@NonNull
    public IconicsDrawable contourWidthRes(@DimenRes int sizeResId) {
        return contourWidthPx(mContext.getResources().getDimensionPixelSize(sizeResId));
    }
312588
@NonNull
    public IconicsDrawable shadowPx(
            @Dimension(unit = PX) float radius,
            @Dimension(unit = PX) float dx,
            @Dimension(unit = PX) float dy,
            @ColorInt int color) {
        mShadowRadius = radius;
        mShadowDx = dx;
        mShadowDy = dy;
        mShadowColor = color;

        mIconBrush.getPaint().setShadowLayer(radius, dx, dy, color);
        invalidateSelf();
        return this;
    }
685923
public static Drawable getPlaceHolder(Context ctx) {
        return new IconicsDrawable(ctx, MaterialDrawerFont.Icon.mdf_person).colorRes(R.color.accent).backgroundColorRes(R.color.primary).sizeDp(56).paddingDp(16);
    }
701531
@NonNull
    public IconicsDrawable iconText(@NonNull String icon, @Nullable Typeface typeface) {
        mPlainIcon = icon;
        mIcon = null;
        mIconBrush.getPaint().setTypeface(typeface == null ? Typeface.DEFAULT : typeface);

        invalidateSelf();
        return this;
    }
164358
private void offsetIcon(@NonNull Rect viewBounds) {
        float startX = viewBounds.centerX() - (mPathBounds.width() / 2);
        float offsetX = startX - mPathBounds.left;

        float startY = viewBounds.centerY() - (mPathBounds.height() / 2);
        float offsetY = startY - (mPathBounds.top);

        mPath.offset(offsetX + mIconOffsetX, offsetY + mIconOffsetY);
    }
495254
@NonNull
    public IconicsDrawable backgroundContourColor(@NonNull ColorStateList colors) {
        if (colors != null) {
            mBackgroundContourBrush.setColors(colors);
            if (mBackgroundContourBrush.applyState(getState())) {
                invalidateSelf();
            }
        }
        return this;
    }
705886
@NonNull
  @SuppressWarnings("WeakerAccess")
  public SnackbarWrapper setIcon(Drawable icon) {
    messageView.setCompoundDrawablesWithIntrinsicBounds(icon, null, null, null);
    return this;
  }
1287271
@NonNull
    public IconicsDrawable shadowDp(
            @Dimension(unit = DP) float radiusDp,
            @Dimension(unit = DP) float dxDp,
            @Dimension(unit = DP) float dyDp,
            @ColorInt int color) {
        return shadowPx(
                Utils.convertDpToPx(mContext, radiusDp),
                Utils.convertDpToPx(mContext, dxDp),
                Utils.convertDpToPx(mContext, dyDp),
                color);
    }
1018129
@Override
    public Shape getShape(final Object o) throws NotAvailableException {
        if (o instanceof GlyphIcons) {
            return GLYPH_ICON_SHAPE_PROVIDER.getShape((GlyphIcons) o);
        }

        if (o instanceof Shape) {
            return SVG_PATH_SHAPE_PROVIDER.getShape((SVGPath) o);
        }

        throw new NotAvailableException(ContextType.USE_ID_AS_CONTEXT, "ShapeProvider", new InvalidStateException("Shape description " + o + " is not supported!"));
    }
1216748
@NonNull
    public IconicsDrawable backgroundContourWidthDp(@Dimension(unit = DP) int sizeDp) {
        return backgroundContourWidthPx(Utils.convertDpToPx(mContext, sizeDp));
    }