Helper for functions that create mipmap levels.
procedure FillMipMapLevel(const BiggerLevel: TImageData; Width: LongInt; Height: LongInt; var SmallerLevel: TImageData);
ImagingFormats (at line 111)
BiggerLevel is valid image and SmallerLevel is empty zeroed image. SmallerLevel is created with Width and Height dimensions and it is filled with pixels of BiggerLevel using resampling filter specified by ImagingMipMapFilter option. Uses StretchNearest and StretchResample internally so the same image data format limitations apply.