Helper function for resampling.
procedure FindExtremes(const Map: TMappingTable; var MinPos: LongInt; var MaxPos: LongInt);
ImagingFormats (at line 190)