newbmp:= TBitmap.Create;
newbmp.Width:=image1.Width;
newbmp.Height:=image1.Height;
bmpheight:=image1.Height;
bmpwidth:=image1.Width;
for i:=0 to bmpheight do begin
newbmp.Canvas.CopyRect(Rect
(0,bmpheight-i,bmpwidth,bmpheight),
image1.Canvas,
Rect(0,0,bmpwidth,i));
form1.Canvas.Draw(120,100,newbmp);
end;
newbmp.free;其中这一句 报错
newbmp.Canvas.CopyRect(Rect
(0,bmpheight-i,bmpwidth,bmpheight),
image1.Canvas,
Rect(0,0,bmpwidth,i));
谁知道如何解决吗
newbmp.Width:=image1.Width;
newbmp.Height:=image1.Height;
bmpheight:=image1.Height;
bmpwidth:=image1.Width;
for i:=0 to bmpheight do begin
newbmp.Canvas.CopyRect(Rect
(0,bmpheight-i,bmpwidth,bmpheight),
image1.Canvas,
Rect(0,0,bmpwidth,i));
form1.Canvas.Draw(120,100,newbmp);
end;
newbmp.free;其中这一句 报错
newbmp.Canvas.CopyRect(Rect
(0,bmpheight-i,bmpwidth,bmpheight),
image1.Canvas,
Rect(0,0,bmpwidth,i));
谁知道如何解决吗
解决方案 »
- 经理让我学Delphi,请各位给点建议
- 日本议员提议定钓鱼岛日
- 用ADOQuery的SQL语句操作Access表,如何生成Bool、自动编号这两种类型的字段
- delphi6 与C++Builder6 共存的问题
- 怎樣用RealPlayer ActiveX Control Library(Version 1.0)控件做視頻播放器?
- 小弟只有40分,临死前只想说一句话:“在QuickReport中打印工资条怎样实现每页合计与表头有第n页共m页字样?"
- TEXT文件的读写问题,请帮我一下,我急!
- 问大家一个问题,DATASource是不是连接ACCESS表的数据库,如果是连接SQL的要用哪个呢?
- 希望有朋友将小弟的Delphi代码改成存储过程,以提高查询效率
- 有没有青岛的朋友,联系
- 写Form.Onshow事件时出现很奇怪的错误,很多人都说没见过
- 我的spliter使用起来一切正常,可就是当鼠标指上去的时候不会变光标...为什么呀,是不是BUG,你们遇到过么?
//合并到一行。。代码没问题,可能是你放的格式不对。
newbmp.Canvas.CopyRect(Rect(0,bmpheight-i,bmpwidth,bmpheight),image1.Canvas,Rect(0,0,bmpwidth,i));
form1.Canvas.Draw(120,100,newbmp);
end;