What exactly does ZoomAndCrop do when resizing an image

I am wondering exactly how the ZoomAndCrop resize method works.  Does it center and crop or align to the upper left?

  • It resizes the image while preserving the aspect ratio to ensure that it meets or exceeds both the desired width and height, then crops the desired image size from the *center* of the resized image.