fitInImage

Zoom to the given region of an image.

Demo
  1. Load a base64-encoded image

  2. Zoom on a region:

    Region with center (150,150) and size 100x100 pixels

    Region with center (150,150) and size 300x300 pixels

    Region with center (300,0) and size 50x50 pixels