Parameters
- offset
The left top corner point of the sub Image
- size
The total size of the original image to capture
- magnification
The zooming factor which determines the output size
- frame
The frame number to use. This is 1-index, i.e. first frame is 1 not 0
- scaleMode
The scaling mode to use