The target to resize.
The target width in pixels.
The target height in pixels.
The horizontal offset for placing the original image within the new buffer.
The vertical offset for placing the original image within the new buffer.
A new ImageData instance with the specified dimensions.
Non destructively resizes the ImageData buffer to new dimensions, optionally offsetting the original content. This operation creates a new buffer. It does not scale or stretch pixels; instead, it crops or pads the image based on the new dimensions and provides an offset for repositioning.