救命啊 ! 有那位大哥指點一下.procedure Rotate90(const Bitmap: TBitmap);
var
i, j: Integer;
rowIn, rowOut: PRGBTriple;
Bmp: TBitmap;
Width, Height: Integer;
begin
Bmp := TBitmap.Create;
Bmp.Width := Bitmap.Height;
Bmp.Height := Bitmap.Width;
Width := Bitmap.Width - 1;
Height := Bitmap.Height - 1;
for j := 0 to Height do
begin
rowIn := Bitmap.ScanLine[j];
for i := 0 to Width do
begin
rowOut := Bmp.ScanLine[i];
Inc(rowOut, Height - j);
rowOut^ := rowIn^;
Inc(rowIn);
end;
end;
Bitmap.Assign(Bmp);
end;上面是一段將bmp圖形旋轉90度的function。為什麼只是底色有旋轉中間的圖形都不見了..先謝謝各位了
var
i, j: Integer;
rowIn, rowOut: PRGBTriple;
Bmp: TBitmap;
Width, Height: Integer;
begin
Bmp := TBitmap.Create;
Bmp.Width := Bitmap.Height;
Bmp.Height := Bitmap.Width;
Width := Bitmap.Width - 1;
Height := Bitmap.Height - 1;
for j := 0 to Height do
begin
rowIn := Bitmap.ScanLine[j];
for i := 0 to Width do
begin
rowOut := Bmp.ScanLine[i];
Inc(rowOut, Height - j);
rowOut^ := rowIn^;
Inc(rowIn);
end;
end;
Bitmap.Assign(Bmp);
end;上面是一段將bmp圖形旋轉90度的function。為什麼只是底色有旋轉中間的圖形都不見了..先謝謝各位了
解决方案 »
- 本进程使用结构tagNMLISTVIEW 删除节点无效,求助??????
- 天价分请教一个Twebbrowser问题!!
- C/S 模式 如何让 一个帐号登录后 就不能在其他机子登录 即如何避免重复登录
- 怎样把日文,韩文,和中文在一个界面共存
- 多线程访问对象(资源)时,采用什么方式保证线程安全?
- 请问:
- Sender as TdxCheckEdit, dxDBGrid,Sender is TdxCheckEdit, dxDBGrid//as与is 两者有什么区别
- 找点delphi写com+的中文资料,英文看起来好难受
- 我想定时将memo1中的内容写到一个文本中,并是递加的,怎么实现?
- sqlServer7中自动加1字段的问题
- Delphi中用ADO进行数据库连接问题
- LISTBOX
那上面有好多错误的
不过在它旁边有几篇
你可以参考呀
讲的都是图像旋转
delphi中基本图像处理代码
請告訴我地址.
我是在http://dev.csdn.net/article/17/17193.shtm上看的.先謝了