code: protected static Image fakeSubsampling(final Image pImage, final ImageWriteParam pParam) {
          return IIOUtil.fakeSubsampling(pImage, pParam);
      }
docs: Utility method for getting the subsampled image.
  The subsampling is defined by the
  {@link javax.imageio.IIOParam#setSourceSubsampling(int, int, int, int)}
  method.
  <p/>
  NOTE: This method does not take the subsampling offsets into
  consideration.
  <p/>
  Note: If it is possible for the writer to subsample directly, such a
  method should be used instead, for efficiency.
  
  @param pImage the image to subsample
  @param pParam the param optionally specifying subsampling
  
  @return an {@code Image} containing the subsampled image, or the
  original image, if no subsampling was specified, or
  {@code pParam} was {@code null}