code: public static Bitmap textToBitmap(@NonNull final Context context, final int width,
                                        final int height, @ColorInt final int backgroundColor,
                                        @NonNull final CharSequence text, final float textSize,
                                        @ColorInt final int textColor) {
          return textToBitmap(context, width, height, backgroundColor, text, textSize, textColor,
                  null);
      }
docs: Creates and returns a bitmap from a specific text. The text is centered.
  
  @param context
  The context, which should be used, as an instance of the class {@link Context}. The
  context may not be null
  @param width
  The width of the bitmap, which should be created, in pixels as an {@link Integer}
  value
  @param height
  The height of the bitmap, which should be created, in pixels as an {@link Integer}
  value
  @param backgroundColor
  The background color of the bitmap, which should be created, as an {@link Integer}
  value
  @param text
  The text, the bitmap should be created from, as an instance of the type {@link
  CharSequence}. The text may neither be null, nor empty
  @param textSize
  The text size, which should be used, in sp as an {@link Integer} value
  @param textColor
  The text color, which should be used, as an {@link Integer} value The color of the
  text
  @return The bitmap, which has been created, as an instance of the class {@link Bitmap}