Skip to content

Add zooming #12

@apsexton

Description

@apsexton

Add a zoom feature with actions

  • zoomIn: increase the scale by one step
  • zoomOut: decrease the scale by one step
  • zoomReset: reset the scale to 100%
  • zoomWidth: set the scale so that the full width of the image just fits in the window
  • zoomPage: set the scale so that the full image fits in the window.
    All these actions just need to manipulate a scale variable and call a setScale method so that when drawing the image, it is drawn to the appropriate scale. Note that everything else has to be scaled accordingly: bounding boxes, scroll window preferred size etc.
    Both GTE and Layout sub-projects need essentially the same code.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions