docs: public void copyBits(BufferedImage pSrcBitmap, Rectangle pSrcRect, Rectangle pDstRect, int pMode, Shape pMaskRgn) {
          graphics.setComposite(getCompositeFor(pMode));
          if (pMaskRgn != null) {
              setClipRegion(pMaskRgn);
          }
  
          graphics.drawImage(
                  pSrcBitmap,
                  pDstRect.x,
                  pDstRect.y,
                  pDstRect.x + pDstRect.width,
                  pDstRect.y + pDstRect.height,
                  pSrcRect.x,
                  pSrcRect.y,
                  pSrcRect.x + pSrcRect.width,
                  pSrcRect.y + pSrcRect.height,
                  null
          );
  
          setClipRegion(null);
      }