The source pixel data to resize.
The target width in pixels.
The target height in pixels.
The horizontal offset for placing the original image.
The vertical offset for placing the original image.
Optionalout: MutablePixelData32output object
A new PixelData32 object with the specified dimensions.
Non-destructively resizes the PixelData32 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.