/**
   * Called in response to a resize event, handles setting the new width and height internally, as
   * well as re-allocating the pixel buffer for the new size.
   *
   * <p>Note that this will nuke any cameraMode() settings.
   */
  public void setSize(int iwidth, int iheight) { // ignore
    width = iwidth;
    height = iheight;
    width1 = width - 1;
    height1 = height - 1;

    allocate();
    reapplySettings();
  }