在dll里不能使用assign么

amartapple 2003-07-19 10:06:09
这段代码单独使用是正确的

//旋转90度
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;
Bmp.PixelFormat := pf24bit;
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;

可是我把它做到一个dll中,却出现异常,can not assign a TBitmap to TBitmap
...全文
82 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
李_军 2003-07-19
  • 打赏
  • 举报
回复
如果你的TBitmap是从外面传进dll的,那是不行,有些是不能传入的
李_军 2003-07-19
  • 打赏
  • 举报
回复
有些VCL控件是不能传入dll中的
redlegend_126_com 2003-07-19
  • 打赏
  • 举报
回复
什么意思,请详细解答!!1
amartapple 2003-07-19
  • 打赏
  • 举报
回复
谢谢,

1,183

社区成员

发帖
与我相关
我的任务
社区描述
Delphi GAME,图形处理/多媒体
社区管理员
  • GAME,图形处理/多媒体社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧