Matrix.PixelResample Method

procedure PixelResample(Dst: TMtx; const ZoomRect: Rectangle; mode: TPixelDownSample);

Allows to exactly specify the size of the destination matrix with PixelsHeight and PixelsWidth parameters.

#NameTypeDescription
1DstTMtxsource TMtx
2ZoomRectRectangle
3modeTPixelDownSample

Result: stored in self (calling object)

Remarks:

The source matrix can be bigger or smaller than the destination.