code: public void setCanvasWidthHeight(int width, int height) {
          hudWidth = width;
          hudHeight = height;
          HUD = Bitmap.createBitmap(width, height, Config.ARGB_8888);
          canvas = new Canvas(HUD);
          texture = null;
      }
docs: Sets the width and height of the canvas the text is drawn to.
  
  @param width
  width of the new canvas.
  
  @param height
  hegiht of the new canvas.