ASKER
ASKER
ASKER
ASKER
ASKER
Delphi is the most powerful Object Pascal IDE and component library for cross-platform Native App Development with flexible Cloud services and broad IoT connectivity. It provides powerful VCL controls for Windows 10 and enables FMX development for Windows, Mac and Mobile. Delphi is your choice for ultrafast Enterprise Strong Development™. Look for increased memory for large projects, extended multi-monitor support, improved Object Inspector and much more. Delphi is 5x faster for development and deployment across multiple desktop, mobile, cloud and database platforms including 32-bit and 64-bit Windows 10.
TRUSTED BY
Regards Jacco
PS: There is a small bug in the framework:
...
if not Fade then
begin
img.Invalidate; <<<< need to be inserted to show the last step to user
...
function TfrmFade.Blend: Boolean;
type
TRGBQuadArray = array[0..0] of TRGBQuad;
PRGBQuadArray = ^TRGBQuadArray;
var
i, s, d: PRGBQuadArray;
liX, liY, liSteps: Integer;
begin
liSteps := 500 div Speed;
for liY := 0 to imgHeight-1 do
begin
i := img.Picture.Bitmap.ScanLin
s := src.Picture.Bitmap.ScanLin
d := dst.Picture.Bitmap.ScanLin
for liX := 0 to imgWidth-1 do
begin
i[liX].rgbRed := EnsureRange(Round(s[liX].r
i[liX].rgbGreen := EnsureRange(Round(s[liX].r
i[liX].rgbBlue := EnsureRange(Round(s[liX].r
end;
end;
Inc(Step);
Result := not (Step = liSteps + 1);
end;