// Clamp to reasonable range if FCanvasBuffer[i] > 1 then FCanvasBuffer[i] := 1;
See how FMX handles different screen densities. delphi fmx samples