Look at FlipImage for details.
function ImFlipImage(var Image: TImageData): Boolean; cdecl;
ImagingExport (at line 110)