delphi 图形图象的问题(300分)

  • 主题发起人 主题发起人 wgzn
  • 开始时间 开始时间
W

wgzn

Unregistered / Unconfirmed
GUEST, unregistred user!

1.怎么在drawGrid1 格内画一个球体。
2 怎么在drawGrid1 格内显示图片。
3.怎么象 彩色连珠 每个珠子生成,移动,消失时有动画效果。

1.怎么制作浮动的提示栏,有点象词霸的形式(但提示栏可以作成不规则形状)
2.有delphi开发游戏,图形图象的网站吗。

谢谢


 
一些源程序:
http://delphi.freemai.com/Default.asp?classid=2&Nclassid=9
一些链接:
http://www.lj21cn.8u8.com/
 
去找这个帖子的楼主
http://www.delphibbs.com/delphibbs/dispq.asp?lid=2519305
对他来说小菜
 
procedure TForm1.DBGrid1DrawDataCell(Sender: TObject; const Rect: TRect;
Field: TField; State: TGridDrawState);
var
bmp:TBitmap;
begin
with DBGrid1.Canvas do
begin
Fillrect(Rect);
try
bmp:=TBitmap.Create ;
bmp.Assign('.......');
Draw(Rect.Left ,Rect.Top ,bmp);
finally
bmp.Free;
end
end;
end;
 
procedure TForm1.DBGrid1DrawDataCell(Sender: TObject; const Rect: TRect;
Field: TField; State: TGridDrawState);
var TempBmp:TBitmap;
begin
Try
TempBmp:=TBitmap;
TempBmp.LoadFromFile('BmpName');
DBGrid1.Canvas.Draw(0,0,TempBmp);
Finally
FreeAndNil(TempBmp);
End;
end;
 

Similar threads

D
回复
0
查看
793
DelphiTeacher的专栏
D
D
回复
0
查看
828
DelphiTeacher的专栏
D
D
回复
0
查看
2K
DelphiTeacher的专栏
D
D
回复
0
查看
1K
DelphiTeacher的专栏
D
后退
顶部