for i:=0 to Bitmap1.Width -1 do
begin
for y:=0 to Bitmap1.Height-1 do
begin
Current:=Bitmap1.ScanLine[y];
Next:=Bitmap2.ScanLine[y];
ToDisplay:=Bitmap3.ScanLine[y];
for z:=0 to i-1 do
ToDisplay[z]:=Next[z];
for j:=i to Bitmap1.Width-1 do
ToDisplay[j]:=Current[j];//这句出错。
end;
Image1.Canvas.Draw(0,0,Bitmap3 );
Application.ProcessMessages;
end;
end;出错语句:project project1.exe raised exception class EAccessViolation with message'Access violation at address 004526FE in module'Project1.exe'.
Write of address 000000000'.
begin
for y:=0 to Bitmap1.Height-1 do
begin
Current:=Bitmap1.ScanLine[y];
Next:=Bitmap2.ScanLine[y];
ToDisplay:=Bitmap3.ScanLine[y];
for z:=0 to i-1 do
ToDisplay[z]:=Next[z];
for j:=i to Bitmap1.Width-1 do
ToDisplay[j]:=Current[j];//这句出错。
end;
Image1.Canvas.Draw(0,0,Bitmap3 );
Application.ProcessMessages;
end;
end;出错语句:project project1.exe raised exception class EAccessViolation with message'Access violation at address 004526FE in module'Project1.exe'.
Write of address 000000000'.
解决方案 »
- TRMReport.PrintPreparedReport “aCollate: Boolean”参数的问题
- delphi2005里没有了ActiveX组件?无法导入flash组件?
- 郁闷的问题,进来提意见的就有分!
- 用什么函数来实现取字段的前几个值。
- 求一SQL语句!!!完成一查询!
- 如何正确使用tstringlist和tstrings
- delphi和SQLSERVER2000的简单问题
- Delphi 7 下有TNMSmtp控件吗/?
- 老鱼,你在吗?有分了……
- 请问ProCoffee99(冬月)怎样将SringGrid复制到一个TStringList中
- 如何通過IP得到對方的電腦名稱和網卡的物理地址?
- 有关Tstrings类释放内存和free函数释放内存的问题----sigh..
如:var
i: Array[0..2] of Integer;
begin
i[3] := 0;
end;你的错误就上述错误
如果Current[j]中
假设 j 现在的值为100
而你Current数组中的最大值为90
那你这句话一定是会出错的了,不是吗?
访问 了一个不存在的内存地址
如果是这种情况的话,好像没法判断的这是一些变量:Current,Next,ToDisplay:PByteArray;
i,y,j,z:integer;
代码主要是实现图像间的平滑过渡。