Resize by the given dimensions, using a specified method of resizing: fill, crop, pad, etc.
The width in pixels.
The height in pixels.