R
ruelm
Unregistered / Unconfirmed
GUEST, unregistred user!
我找到了这段
var
i,j:Integer;
rowIn,rowOutRGBTriple;
Bmp:TBitmap;
Width,Height:Integer;
begin
Bmp:=TBitmap.Create;
Bmp.Width := img1.Height;
Bmp.Height := img1.Width;
Bmp.PixelFormat := pfDevice;
Width:=img1.Width-1;
Height:=img1.Height-1;
for j := 0 to Height do
begin
rowIn := img1.Picture.Bitmap.ScanLine[j];
for i := 0 to Width do
begin
rowOut := Bmp.ScanLine;
Inc(rowOut,Height-j);
rowOut^ := rowIn^;
Inc(rowIn);
end;
end;
img1.Picture.Assign(Bmp);
end;
怎么老是 scan line index out of range ,
应该怎么写
相关资料
scan lin 的资料 http://bluemoon.diy.myrice.com/efg/scanline.htm
图像旋转笔记 http://www.delphibbs.com/keylife/iblog_show.asp?xid=4499
还望大侠宽恕我的愚笨,指教一二,
var
i,j:Integer;
rowIn,rowOutRGBTriple;
Bmp:TBitmap;
Width,Height:Integer;
begin
Bmp:=TBitmap.Create;
Bmp.Width := img1.Height;
Bmp.Height := img1.Width;
Bmp.PixelFormat := pfDevice;
Width:=img1.Width-1;
Height:=img1.Height-1;
for j := 0 to Height do
begin
rowIn := img1.Picture.Bitmap.ScanLine[j];
for i := 0 to Width do
begin
rowOut := Bmp.ScanLine;
Inc(rowOut,Height-j);
rowOut^ := rowIn^;
Inc(rowIn);
end;
end;
img1.Picture.Assign(Bmp);
end;
怎么老是 scan line index out of range ,
应该怎么写
相关资料
scan lin 的资料 http://bluemoon.diy.myrice.com/efg/scanline.htm
图像旋转笔记 http://www.delphibbs.com/keylife/iblog_show.asp?xid=4499
还望大侠宽恕我的愚笨,指教一二,