Hello,
I am working with Delphi. I am using bmp.ScanLine[]
in my code. My code is as follows :
bmp := TBitmap.Create;
bmp.Height := imgMain.Height;
bmp.Width := imgMain.Width;
for i := 0 to imgMain.Height - 1 do begin
prgb := bmp.ScanLine[i];
p1 := imgMain.ScanLine[i];
for j := 0 to imgMain.Width - 1 do begin
//Some code
end;
end;
Here, imgMain is of TBitmap type. My problem is when I execute this code, it takes too much time on the lines
prgb := bmp.ScanLine[i];
p1 := imgMain.ScanLine[i];
Please, tell me where I am wrong?