Package 

Class BitmapDraw

    • Method Detail

      • addText

         final Unit addText(String text, Float textSize, Boolean bold, Paint.Align align, @IntRange(from = 0.toLong(), to = 100.toLong()) Integer widthPercent)

        Draw text

        Parameters:
        text - the text to be drawn
        bold - true to set the text to bold, false to normal.
        align - set the ratio of text width to paper
        widthPercent - set the ratio of text width to paper,from 0-100, 0 to automatically adapt the occupied width according to the text width.
      • addImage

         final Unit addImage(Bitmap image, Paint.Align align, @IntRange(from = 0.toLong(), to = 100.toLong()) Integer widthPercent)

        Draw image bitmap

        Parameters:
        image - the image to be drawn
        align - set the ratio of text width to paper
        widthPercent - set the ratio of image width to paper,from 0-100, 0 to automatically adapt the occupied width according to the image width.
      • newline

         final Unit newline()

        Move start position to next line